add wget to runner image for healthcheck
All checks were successful
Lint / Lint and Check (push) Successful in 35s

This commit is contained in:
2025-12-09 13:28:08 +01:00
parent 8286b9801f
commit 05a0cb387d

View File

@@ -5,7 +5,7 @@ FROM node:24-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat curl
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install dependencies based on the preferred package manager
@@ -38,6 +38,8 @@ RUN \
# Production image, copy all the files and run next
FROM base AS runner
# wget needed for healthcheck
RUN apk add --no-cache wget
WORKDIR /app
ENV NODE_ENV=production