Skip to content

Instantly share code, notes, and snippets.

@nottrobin
Created November 15, 2019 13:07
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 nottrobin/60d949fd41c99b8c77fb23f614b126f8 to your computer and use it in GitHub Desktop.
Save nottrobin/60d949fd41c99b8c77fb23f614b126f8 to your computer and use it in GitHub Desktop.
nginx with SIGTERM immediately exits
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
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment