We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 341cc9c commit 5314424Copy full SHA for 5314424
Dockerfile
@@ -19,15 +19,16 @@ COPY config/php.ini /etc/php7/conf.d/custom.ini
19
# Configure supervisord
20
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
21
22
+# Setup document root
23
+RUN mkdir -p /var/www/html
24
+
25
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
-RUN chown -R nobody.nobody /run && \
26
+RUN chown -R nobody.nobody /var/www/html && \
27
+ chown -R nobody.nobody /run && \
28
chown -R nobody.nobody /var/lib/nginx && \
29
chown -R nobody.nobody /var/tmp/nginx && \
30
chown -R nobody.nobody /var/log/nginx
31
-# Setup document root
-RUN mkdir -p /var/www/html
-
32
# Make the document root a volume
33
VOLUME /var/www/html
34
0 commit comments