feat(docker): update Node.js version to 24.15.0 in Dockerfile and test workflow

This commit is contained in:
Nils-Johan Gynther
2026-05-03 21:48:25 +02:00
parent 6278825f0a
commit dd74d8b7eb
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -1,25 +1,26 @@
# Byggas från backend-mappen: docker build -t recipe-api:local .
# Stage 1: Bygg applikationen
FROM node:22-alpine AS builder
FROM node:24.15.0-alpine AS builder
WORKDIR /app
# Kopiera backend-filer
COPY package.json ./
COPY package-lock.json ./
COPY prisma ./prisma
COPY src ./src
COPY tsconfig.json ./
COPY nest-cli.json ./
# Köra npm install
RUN npm install
# Köra npm ci för reproducerbara builds
RUN npm ci
RUN npx prisma generate
RUN npm test
RUN npm run build
# Stage 2: Kör applikationen
FROM node:22-alpine AS runner
FROM node:24.15.0-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production