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.
This commit is contained in:
Aelfa
2024-02-21 03:58:36 +05:00
committed by GitHub
parent 0a2c9ad1f0
commit 62380e5f3c

View File

@@ -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