mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature: docker: io: healthcheck
This commit is contained in:
parent
c1c67c18af
commit
8763788bad
1 changed files with 7 additions and 0 deletions
|
|
@ -28,5 +28,12 @@ ENV cloudcmd_vim=true
|
|||
|
||||
EXPOSE 8000
|
||||
|
||||
HEALTHCHECK \
|
||||
--interval=2s \
|
||||
--timeout 2s \
|
||||
--retries=20 \
|
||||
--start-period=30s \
|
||||
CMD curl -f localhost:8000
|
||||
|
||||
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue