Skip to content

Commit 7c49120

Browse files
committed
added permission issue fix
1 parent 1bf28bc commit 7c49120

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nginx/Dockerfile-fpm-alpine-nginx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ RUN chmod u+x /usr/local/bin/forego
88
RUN apk --update add nginx
99

1010
# Add configuration files, Note: nginx runs under `www-data`
11+
# Note: chmod is a workaround for esotheric permissions issues on Alpine
1112
COPY image-files/ /
12-
RUN chown -R www-data:www-data /var/lib/nginx/
13+
RUN chown -R www-data:www-data /var/lib/nginx/ \
14+
&& chmod 777 /var/lib/nginx/tmp/client_body/
1315

1416
# forward request and error logs to docker log collector
1517
RUN ln -sf /dev/stdout /var/log/nginx/access.log \

0 commit comments

Comments
 (0)