From 6e9c588ae3d3ba311cf310bd3db7469cb963f256 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 3 May 2026 21:48:49 +0200 Subject: [PATCH] chore: Update Node.js version to 24.15.0 in CI and Dockerfile for consistency Co-authored-by: Copilot --- .github/workflows/test.yml | 2 +- backend/Dockerfile | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 396b704..1d225d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [24.x] + node-version: [24.15.0] steps: - name: Checkout code diff --git a/backend/Dockerfile b/backend/Dockerfile index adc11e6..c07a5f4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,21 +1,22 @@ # Byggas från projektets rot: docker build -f backend/Dockerfile -t recipe-importer-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 backend/package.json ./ +COPY backend/package-lock.json ./ COPY backend/src ./src COPY backend/tsconfig.json ./ COPY backend/nest-cli.json ./ -# Köra npm install -RUN npm install +# Köra npm ci för reproducerbara builds +RUN npm ci 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