Skip to content

Commit 9ee51e9

Browse files
committed
Add basic healthcheck.
1 parent b401635 commit 9ee51e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Server/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ VOLUME "/remotely-data"
2020

2121
RUN chmod +x "/src/DockerMain.sh"
2222

23-
ENTRYPOINT ["/src/DockerMain.sh"]
23+
ENTRYPOINT ["/src/DockerMain.sh"]
24+
25+
HEALTHCHECK --interval=5m --timeout=3s \
26+
CMD curl -f http://localhost:5000/ || exit 1

0 commit comments

Comments
 (0)