Skip to content

Instantly share code, notes, and snippets.

@nottrobin
Created November 15, 2019 11:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nottrobin/79087f07efab61f013c6e7e519a96ad8 to your computer and use it in GitHub Desktop.
Save nottrobin/79087f07efab61f013c6e7e519a96ad8 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