Parcourir la source

chore: upgrade to nodejs 22

Elias Schneider il y a 1 an
Parent
commit
df4341163a
2 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 5 5
      Dockerfile
  2. 1 1
      docs/docs/setup/installation.md

+ 5 - 5
Dockerfile

@@ -1,25 +1,25 @@
 # Stage 1: Frontend dependencies
-FROM node:20-alpine AS frontend-dependencies
+FROM node:22-alpine AS frontend-dependencies
 WORKDIR /opt/app
 COPY frontend/package.json frontend/package-lock.json ./
 RUN npm ci
 
 # Stage 2: Build frontend
-FROM node:20-alpine AS frontend-builder
+FROM node:22-alpine AS frontend-builder
 WORKDIR /opt/app
 COPY ./frontend .
 COPY --from=frontend-dependencies /opt/app/node_modules ./node_modules
 RUN npm run build
 
 # Stage 3: Backend dependencies
-FROM node:20-alpine AS backend-dependencies
+FROM node:22-alpine AS backend-dependencies
 RUN apk add --no-cache python3
 WORKDIR /opt/app
 COPY backend/package.json backend/package-lock.json ./
 RUN npm ci
 
 # Stage 4: Build backend
-FROM node:20-alpine AS backend-builder
+FROM node:22-alpine AS backend-builder
 RUN apk add openssl
 
 WORKDIR /opt/app
@@ -29,7 +29,7 @@ RUN npx prisma generate
 RUN npm run build && npm prune --production
 
 # Stage 5: Final image
-FROM node:20-alpine AS runner
+FROM node:22-alpine AS runner
 ENV NODE_ENV=docker
 
 # Delete default node user

+ 1 - 1
docs/docs/setup/installation.md

@@ -25,7 +25,7 @@ Your container is now listening on `http://localhost:<externalport>`, have fun w
 
 Required tools:
 
-- [Node.js](https://nodejs.org/en/download/) >= 16
+- [Node.js](https://nodejs.org/en/download/) >= 22
 - [Git](https://git-scm.com/downloads)
 - [pm2](https://pm2.keymetrics.io/) for running Pingvin Share in the background