Skip to content

Commit 94fd824

Browse files
add health check to dockerfile
1 parent 1f766ba commit 94fd824

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/hashing-tool/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ COPY app.css /usr/share/nginx/html/app.css
1111
COPY entrypoint.sh /entrypoint.sh
1212
RUN chmod +x /entrypoint.sh
1313

14-
# Configure nginx to serve on port 3071
14+
# Configure nginx to serve on port 3071 with healthcheck
1515
RUN echo 'server { \
1616
listen 3071; \
1717
location / { \
1818
root /usr/share/nginx/html; \
1919
index index.html; \
2020
} \
21+
location = /ops/healthcheck { \
22+
access_log off; \
23+
return 200 "OK"; \
24+
add_header Content-Type text/plain; \
25+
} \
2126
}' > /etc/nginx/conf.d/default.conf
2227

2328
EXPOSE 3071

0 commit comments

Comments
 (0)