From 0a2c9ad1f09852d47d1c3f2a3a2577f5cf7fc967 Mon Sep 17 00:00:00 2001 From: Aelfa <60222501+aelfa@users.noreply.github.com> Date: Wed, 21 Feb 2024 03:22:16 +0500 Subject: [PATCH 1/2] Update Dockerfile --- src/node/consumer/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node/consumer/Dockerfile b/src/node/consumer/Dockerfile index f9a781f..005dec9 100644 --- a/src/node/consumer/Dockerfile +++ b/src/node/consumer/Dockerfile @@ -12,6 +12,9 @@ RUN npm prune --omit=dev FROM node:lts-buster-slim +# Install necessary packages, including procps +RUN apt update && apt install -y procps && rm -rf /var/lib/apt/lists/* + WORKDIR /app COPY --from=builder /app ./ From 62380e5f3cc6f68df8bac12bdd64fa8fa368c2bd Mon Sep 17 00:00:00 2001 From: Aelfa <60222501+aelfa@users.noreply.github.com> Date: Wed, 21 Feb 2024 03:58:36 +0500 Subject: [PATCH 2/2] pgrep command is part of the procps package, installed in the builder stage, but it's not present in the final stage. This modification adds the installation of procps in the final stage, ensuring that the pgrep command is available for health check. --- src/node/consumer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/consumer/Dockerfile b/src/node/consumer/Dockerfile index 005dec9..d52fbdd 100644 --- a/src/node/consumer/Dockerfile +++ b/src/node/consumer/Dockerfile @@ -13,7 +13,7 @@ RUN npm prune --omit=dev FROM node:lts-buster-slim # Install necessary packages, including procps -RUN apt update && apt install -y procps && rm -rf /var/lib/apt/lists/* +RUN apt update && apt install -y git procps && rm -rf /var/lib/apt/lists/* WORKDIR /app