Skip to content

Commit 5314424

Browse files
committed
Made the /var/www/html folder owned by nobody
1 parent 341cc9c commit 5314424

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ COPY config/php.ini /etc/php7/conf.d/custom.ini
1919
# Configure supervisord
2020
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
2121

22+
# Setup document root
23+
RUN mkdir -p /var/www/html
24+
2225
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
23-
RUN chown -R nobody.nobody /run && \
26+
RUN chown -R nobody.nobody /var/www/html && \
27+
chown -R nobody.nobody /run && \
2428
chown -R nobody.nobody /var/lib/nginx && \
2529
chown -R nobody.nobody /var/tmp/nginx && \
2630
chown -R nobody.nobody /var/log/nginx
2731

28-
# Setup document root
29-
RUN mkdir -p /var/www/html
30-
3132
# Make the document root a volume
3233
VOLUME /var/www/html
3334

0 commit comments

Comments
 (0)