Skip to content

Instantly share code, notes, and snippets.

@b-a-t
Forked from nottrobin/nginx-sigquit.Dockerfile
Created February 25, 2020 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b-a-t/1c765ba61c71fadc01849d1ebb4aaee3 to your computer and use it in GitHub Desktop.
Save b-a-t/1c765ba61c71fadc01849d1ebb4aaee3 to your computer and use it in GitHub Desktop.
nginx should use STOPSIGNAL SIGQUIT
FROM nginx
RUN echo 'server {\n\
listen 80 default_server;\n\
location / {\n\
proxy_pass http://httpbin.org/delay/10;\n\
}\n\
}' > /etc/nginx/conf.d/default.conf
STOPSIGNAL SIGQUIT
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment