mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
parent
6d71ad3ffd
commit
65f1cdda2a
1 changed files with 5 additions and 6 deletions
11
Dockerfile
11
Dockerfile
|
@ -32,14 +32,13 @@ RUN composer install --prefer-dist --no-dev --optimize-autoloader --no-scripts
|
|||
|
||||
COPY . /app
|
||||
|
||||
RUN php _cleanup.php && rm _cleanup.php
|
||||
|
||||
RUN chown -R www-data:www-data /app \
|
||||
&& find /app -type d -exec chmod 755 {} \; \
|
||||
&& find /app -type f -exec chmod 644 {} \;
|
||||
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 \
|
||||
&& chmod 0644 /etc/cron.d/app-cron
|
||||
&& chmod 0644 /etc/cron.d/app-cron \
|
||||
&& crontab /etc/cron.d/app-cron
|
||||
|
||||
COPY install/docker/Caddyfile /etc/caddy/Caddyfile
|
||||
COPY install/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue