Created
May 4, 2026 22:19
-
-
Save aodin/6761a8a48015d867907a960e612ea850 to your computer and use it in GitHub Desktop.
Dockerfile for testing health checks, returns 500 on /health
This file contains hidden or 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:alpine | |
| RUN echo '<h1>Health Check Test</h1>' > /usr/share/nginx/html/index.html | |
| RUN sed -i '/location \/ {/i\ location /health { return 500; }' /etc/nginx/conf.d/default.conf | |
| EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment