From f761a08a56d02a99592ee27ae0c36805710c678a Mon Sep 17 00:00:00 2001 From: Sahil Malhotra Date: Thu, 7 Dec 2023 19:11:43 -0500 Subject: [PATCH] add curl --- Dockerfile | 5 ++++- Dockerfile.dev | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf04130..2ded301 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,10 @@ RUN npm install pm2 -g EXPOSE 5050 EXPOSE 5051 -RUN apk add --no-cache curl +RUN apk update +RUN apk upgrade +RUN apk search curl +RUN apk add curl HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:3000 || exit 1 diff --git a/Dockerfile.dev b/Dockerfile.dev index 5a52516..b262d92 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -12,7 +12,10 @@ RUN npm install pm2 -g EXPOSE 5050 EXPOSE 5051 -RUN apk add --no-cache curl +RUN apk update +RUN apk upgrade +RUN apk search curl +RUN apk add 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