From 39ef5a4c4927a14c1ce35851abbb7ab48d07f4fe Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Thu, 26 Mar 2026 18:46:06 -0400 Subject: [PATCH] upd: Dockerfile convert to do a git clone instead of copying the files into the folder and with it dev code --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ff9e39..4665353 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,14 +43,10 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && RUN curl -sS https://get.symfony.com/cli/installer | bash && \ mv /root/.symfony5/bin/symfony /usr/local/bin/symfony -COPY . /var/www/html/ +RUN cd /var/www/html +RUN git clone https://gitea.rkprather.com/ryan/sermon-notes.git ./ RUN mv 000-default.conf /etc/apache2/sites-available/ -RUN rm /var/www/html/.env* -RUN rm -rf /var/www/html/var/* -RUN rm -rf /var/www/html/vendor -RUN rm -rf /var/www/html/tests -RUN rm -rf /var/www/html/translations RUN echo "20 1 * * 6 root cd /var/www/html && /usr/local/bin/php bin/console app:get-audio > /var/log/sermon-notes.log 2>&1" > /etc/cron.d/get-audio RUN chmod 644 /etc/cron.d/get-audio