mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Update Dockerfile
This commit is contained in:
parent
65f1cdda2a
commit
94f1aa10bf
1 changed files with 2 additions and 4 deletions
|
@ -32,11 +32,9 @@ RUN composer install --prefer-dist --no-dev --optimize-autoloader --no-scripts
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN php _cleanup.php && rm _cleanup.php \
|
RUN php _cleanup.php && rm _cleanup.php
|
||||||
&& chown -R www-data:www-data /app \
|
|
||||||
&& chmod -R 755 /app
|
|
||||||
|
|
||||||
RUN echo "*/10 * * * * www-data php /app/cron.php >> /proc/1/fd/1 2>&1" > /etc/cron.d/app-cron \
|
RUN echo "*/10 * * * * php /app/cron.php >> /proc/1/fd/1 2>&1" > /etc/cron.d/app-cron \
|
||||||
&& chmod 0644 /etc/cron.d/app-cron \
|
&& chmod 0644 /etc/cron.d/app-cron \
|
||||||
&& crontab /etc/cron.d/app-cron
|
&& crontab /etc/cron.d/app-cron
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue