We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef6acf commit b2afaefCopy full SHA for b2afaef
Dockerfile
@@ -18,12 +18,10 @@ COPY config/php.ini /etc/php7/conf.d/zzz_custom.ini
18
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
19
20
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
21
-RUN touch /run/nginx.pid && \
22
- touch /run/supervisord.pid && \
23
- chown -R nobody.nobody /run/nginx.pid && \
24
- chown -R nobody.nobody /run/supervisord.pid && \
+RUN chown -R nobody.nobody /run && \
+ chown -R nobody.nobody /var/lib/nginx && \
25
chown -R nobody.nobody /var/tmp/nginx && \
26
- chown -R nobody.nobody /var/lib/nginx/logs
+ chown -R nobody.nobody /var/log/nginx
27
28
# Setup document root
29
RUN mkdir -p /var/www/html
0 commit comments