diff --git a/Dockerfile b/Dockerfile index 67c0f04..bf04130 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,8 @@ RUN npm install pm2 -g EXPOSE 5050 EXPOSE 5051 +RUN apk add --no-cache curl + +HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:3000 || exit 1 CMD [ "pm2-docker", "pm2.config.js" ] \ No newline at end of file diff --git a/Dockerfile.dev b/Dockerfile.dev index 436f2df..5a52516 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -12,5 +12,8 @@ RUN npm install pm2 -g EXPOSE 5050 EXPOSE 5051 +RUN apk add --no-cache curl + +HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD (rems-setup % curl --fail http://localhost:5051/doctorOrders/api/getRx && curl --fail http://localhost:5050) || exit 1 CMD ./dockerRunnerDev.sh \ No newline at end of file