diff --git a/Dockerfile b/Dockerfile index 5753ab1..28b086c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file