FIX(docker): add curl for healthcheck

- Install all dependencies in Dockerfile
- Add curl package for container healthcheck
This commit is contained in:
2026-01-05 02:39:40 +09:00
parent e82ea71c22
commit 8d2efbc375

View File

@@ -9,7 +9,7 @@ WORKDIR /app
# Install dependencies based on the preferred package manager # Install dependencies based on the preferred package manager
COPY package.json package-lock.json* ./ COPY package.json package-lock.json* ./
RUN npm ci --only=production RUN npm ci
# Rebuild the source code only when needed # Rebuild the source code only when needed
FROM base AS builder FROM base AS builder
@@ -28,6 +28,8 @@ RUN npm run build
FROM base AS runner FROM base AS runner
WORKDIR /app WORKDIR /app
RUN apk add --no-cache curl
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1