We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d28a30 commit ef063d6Copy full SHA for ef063d6
st2web/Dockerfile
@@ -83,5 +83,5 @@ EXPOSE 443
83
EXPOSE 8080
84
EXPOSE 8443
85
STOPSIGNAL SIGTERM
86
-RUN touch /var/run/nginx.pid && chown 999:999 /etc/nginx/conf.d/ /var/cache/nginx/ /var/run/nginx.pid
+RUN touch /var/run/nginx.pid && chown nginx:nginx /etc/nginx/conf.d/ /var/cache/nginx/ /var/run/nginx.pid
87
CMD ["/bin/bash", "-c", "if [ ${ST2WEB_HTTPS} = 1 ]; then ST2WEB_TEMPLATE='/etc/nginx/conf.d/st2-https.template'; else ST2WEB_TEMPLATE='/etc/nginx/conf.d/st2-http.template'; fi && envsubst '${ST2_AUTH_URL} ${ST2_API_URL} ${ST2_STREAM_URL} ${ST2_PORT_HTTP} ${ST2_PORT_HTTPS}' < ${ST2WEB_TEMPLATE} > /etc/nginx/conf.d/st2.conf && exec nginx -g 'daemon off;'"]
0 commit comments