Skip to content

Commit f53e611

Browse files
Merge pull request #5476 from ctron/feature/non_root_1
Allow this to run in a non-root enviroment
2 parents 09e24e4 + e435122 commit f53e611

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ COPY ./dist/* /usr/share/nginx/html/
2020
COPY ./docker/run.sh /usr/share/nginx/
2121
COPY ./docker/configurator /usr/share/nginx/configurator
2222

23-
RUN chmod +x /usr/share/nginx/run.sh
23+
RUN chmod +x /usr/share/nginx/run.sh && \
24+
chmod -R a+rw /usr/share/nginx && \
25+
chmod -R a+rw /etc/nginx && \
26+
chmod -R a+rw /var && \
27+
chmod -R a+rw /var/run
2428

2529
EXPOSE 8080
2630

0 commit comments

Comments
 (0)