mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
add health check and stopsignal
This commit is contained in:
parent
9eb46e2198
commit
acdcff091b
@ -30,7 +30,10 @@ COPY --chown=node:node . .
|
|||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
STOPSIGNAL SIGNINT
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
|
||||||
|
CMD [ "curl", "-f", "${REACT_APP_API_PROTOCOL}://localhost:${REACT_APP_API_PORT}", "||", "exit", "1" ]
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
Loading…
x
Reference in New Issue
Block a user