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 67a81cf commit 54b6ab3Copy full SHA for 54b6ab3
Dockerfile
@@ -34,6 +34,12 @@ ADD entrypoint.sh /entrypoint.sh
34
ADD create_ca_cert.sh /create_ca_cert.sh
35
RUN chmod +x /create_ca_cert.sh /entrypoint.sh
36
37
+# Allow running nginx with unprivileged user
38
+RUN chown 1000:1000 /etc/nginx && \
39
+ mkdir /certs && chown 1000:1000 /certs
40
+
41
+USER 1000:1000
42
43
# Clients should only use 3128, not anything else.
44
EXPOSE 3128
45
@@ -53,4 +59,4 @@ ENV DEBUG="false"
53
59
ENV DEBUG_NGINX="false"
54
60
55
61
# Did you want a shell? Sorry, the entrypoint never returns, because it runs nginx itself. Use 'docker exec' if you need to mess around internally.
56
-ENTRYPOINT ["/entrypoint.sh"]
62
+ENTRYPOINT ["/entrypoint.sh"]
0 commit comments