mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
Merge pull request #389 from Lockszmith/Fix-Dockerfile
Fixes #376 + .dockerignore improvement
This commit is contained in:
commit
00d84614c2
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
Dockerfile
|
||||||
|
.git
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules
|
node_modules
|
||||||
*.swp
|
*.swp
|
||||||
|
|
|
@ -59,5 +59,10 @@ STOPSIGNAL SIGINT
|
||||||
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \
|
||||||
--retries=3 CMD [ "curl" , "-f" "localhost:${PORT}", "||", "exit", "1"]
|
--retries=3 CMD [ "sh", "-c", "echo -n 'curl localhost:7777... '; \
|
||||||
|
(\
|
||||||
|
curl -sf localhost:7777 > /dev/null\
|
||||||
|
) && echo OK || (\
|
||||||
|
echo Fail && exit 2\
|
||||||
|
)"]
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
Loading…
Reference in a new issue