1- # includes redis
2-
31FROM php:8.4-fpm-alpine AS base
42
3+ ENV DIRBROWSER_VERSION=3.9.0
4+
55RUN apk update && apk upgrade
66
77RUN docker-php-ext-install opcache
@@ -20,7 +20,7 @@ RUN apk add --no-cache redis
2020
2121RUN apk add --no-cache nginx
2222
23- RUN apk add --no-cache supervisor
23+ RUN apk add --no-cache bash
2424
2525RUN apk add --no-cache curl \
2626 && curl -fSsL https://github.com/adrianschubek/utpp/releases/download/0.5.0/utpp-alpine -o /usr/local/bin/utpp && chmod +x /usr/local/bin/utpp\
@@ -40,16 +40,19 @@ COPY server/nginx/nginx.conf /etc/nginx/nginx.conf
4040
4141COPY server/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
4242
43- COPY server/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
44-
4543COPY server/php/fpm-pool.conf /usr/local/etc/php-fpm.d/www.conf
4644
4745COPY server/php/php.ini /usr/local/etc/php/conf.d/custom.ini
4846
4947COPY src/index.php /var/www/html
5048
49+ # skipped in v3.9
50+ # COPY src/worker.php /var/www/html
51+
5152COPY src/init.sh /init.sh
5253
54+ RUN chmod +x /init.sh
55+
5356ENV THEME=default
5457
5558ENV DATE_FORMAT=relative
@@ -109,12 +112,13 @@ ENV BATCH_MAX_TOTAL_SIZE=500
109112ENV BATCH_MAX_FILE_SIZE=100
110113# MB, how much system disk space to keep free at all times
111114ENV BATCH_MIN_SYSTEM_FREE_DISK=500
115+ # watch filesystem
116+ ENV WORKER_WATCH=true
117+ # seconds re-scan
118+ ENV WORKER_SCAN_INTERVAL=60
112119
113- # TODO Ratelimiting?
114-
115- RUN chmod +x /init.sh
120+ ENV WORKER_FORCE_RESCAN=
116121
117122EXPOSE 8080
118123
119- # Let supervisord start nginx & php-fpm
120124CMD ["/init.sh" ]
0 commit comments