add health check and stopsignal

This commit is contained in:
emil-lengman 2020-08-12 18:23:06 +02:00 committed by Jérémie Pardou-Piquemal
parent 9eb46e2198
commit acdcff091b

View File

@ -30,7 +30,10 @@ COPY --chown=node:node . .
RUN yarn build
STOPSIGNAL SIGNINT
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" ]
CMD ["yarn", "start"]