Skip to content

Commit 8763788

Browse files
committed
feature: docker: io: healthcheck
1 parent c1c67c1 commit 8763788

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docker/Dockerfile.alpine

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,12 @@ ENV cloudcmd_vim=true
2828

2929
EXPOSE 8000
3030

31+
HEALTHCHECK \
32+
--interval=2s \
33+
--timeout 2s \
34+
--retries=20 \
35+
--start-period=30s \
36+
CMD curl -f localhost:8000
37+
3138
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
3239

0 commit comments

Comments
 (0)