Created
November 15, 2019 13:07
-
-
Save nottrobin/60d949fd41c99b8c77fb23f614b126f8 to your computer and use it in GitHub Desktop.
nginx with SIGTERM immediately exits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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