Commit db6e7603 authored by lksz's avatar lksz
Browse files

Fixes #376 + .dockerignore improvement

parent 5d2965ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Dockerfile
.git
npm-debug.log
node_modules
*.swp
+6 −1
Original line number Diff line number Diff line
@@ -59,5 +59,10 @@ STOPSIGNAL SIGINT
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]

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"]