upd: Dockerfile
remove logrotate functionality in favor of docker native logging
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -15,7 +15,6 @@ RUN apt update && \
|
|||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
cron \
|
cron \
|
||||||
logrotate \
|
|
||||||
nano
|
nano
|
||||||
|
|
||||||
RUN service start cron
|
RUN service start cron
|
||||||
@@ -51,16 +50,6 @@ RUN mv 000-default.conf /etc/apache2/sites-available/
|
|||||||
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
|
||||||
|
|
||||||
RUN echo "/var/log/sermon-notes.log {
|
|
||||||
monthly
|
|
||||||
rotate 12
|
|
||||||
compress
|
|
||||||
delaycompress
|
|
||||||
missingok
|
|
||||||
notifempty
|
|
||||||
create 644 root root
|
|
||||||
}" > /etc/logrotate.d/sermon-notes
|
|
||||||
|
|
||||||
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
|
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
|
||||||
RUN /usr/local/bin/php bin/console asset-map:compile
|
RUN /usr/local/bin/php bin/console asset-map:compile
|
||||||
RUN mkdir /data
|
RUN mkdir /data
|
||||||
|
|||||||
Reference in New Issue
Block a user