Skip to content

Commit

Permalink
Update st2web/Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Floyd <[email protected]>
  • Loading branch information
jk464 and cognifloyd authored May 15, 2024
1 parent 4d28a30 commit ef063d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion st2web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ EXPOSE 443
EXPOSE 8080
EXPOSE 8443
STOPSIGNAL SIGTERM
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
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 comments on commit ef063d6

Please sign in to comment.