Fix Docker build: Use Node 22 and npm install
All checks were successful
Automated Container Build / build-and-push (push) Successful in 28s

This commit is contained in:
Elijah 2026-06-27 19:59:53 -07:00
parent 037206bb25
commit fad28140fd

View file

@ -1,11 +1,11 @@
# ---- deps ----
FROM node:20-slim AS deps
FROM node:22-slim AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
RUN npm install
# ---- builder ----
FROM node:20-slim AS builder
FROM node:22-slim AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
@ -13,7 +13,7 @@ RUN npx prisma generate
RUN npm run build
# ---- runner ----
FROM node:20-slim AS runner
FROM node:22-slim AS runner
WORKDIR /app
ENV NODE_ENV=production
RUN useradd --system --create-home appuser