Fix Docker build: Use Node 22 and npm install
All checks were successful
Automated Container Build / build-and-push (push) Successful in 28s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 28s
This commit is contained in:
parent
037206bb25
commit
fad28140fd
1 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
# ---- deps ----
|
# ---- deps ----
|
||||||
FROM node:20-slim AS deps
|
FROM node:22-slim AS deps
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
|
|
||||||
# ---- builder ----
|
# ---- builder ----
|
||||||
FROM node:20-slim AS builder
|
FROM node:22-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -13,7 +13,7 @@ RUN npx prisma generate
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# ---- runner ----
|
# ---- runner ----
|
||||||
FROM node:20-slim AS runner
|
FROM node:22-slim AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN useradd --system --create-home appuser
|
RUN useradd --system --create-home appuser
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue