swap from node:22-slim to node:latest

This commit is contained in:
Alexander Harding
2026-07-31 20:30:39 -04:00
parent d7c87bca5c
commit 687b0e251a
2 changed files with 5 additions and 21 deletions
+5 -5
View File
@@ -1,15 +1,15 @@
## syntax=docker/dockerfile:1.7
# ---- deps ----
FROM node:22-slim AS deps
FROM node:latest AS deps
RUN apt-get update && apt-get install -y --no-install-recommends libc6 openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --no-audit --no-fund
# ---- build ----
FROM node:22-slim AS builder
FROM node:latest AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
@@ -17,7 +17,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
# ---- runner ----
FROM node:22-slim AS runner
FROM node:latest AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
@@ -25,7 +25,7 @@ ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN groupadd --system --gid 1001 nodejs \
&& useradd --system --uid 1001 --gid nodejs nextjs
&& useradd --system --uid 1001 --gid nodejs nextjs
# Standalone output copies only what's needed at runtime.
COPY --from=builder /app/public ./public