upd: Dockerfile
convert to do a git clone instead of copying the files into the folder and with it dev code
This commit is contained in:
@@ -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 && \
|
RUN curl -sS https://get.symfony.com/cli/installer | bash && \
|
||||||
mv /root/.symfony5/bin/symfony /usr/local/bin/symfony
|
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 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 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
|
RUN chmod 644 /etc/cron.d/get-audio
|
||||||
|
|||||||
Reference in New Issue
Block a user