mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update Dockerfile
This commit is contained in:
parent
bd4c8861e7
commit
d586a18a9e
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
@ -32,13 +32,14 @@ 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 chown -R www-data:www-data /app \
|
||||||
|
&& find /app -type d -exec chmod 755 {} \; \
|
||||||
|
&& find /app -type f -exec chmod 644 {} \;
|
||||||
|
|
||||||
RUN echo "*/10 * * * * www-data php /app/cron.php >> /proc/1/fd/1 2>&1" > /etc/cron.d/app-cron \
|
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/Caddyfile /etc/caddy/Caddyfile
|
||||||
COPY install/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY install/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue