Update Dockerfile to use Node.js 23-slim for both build and production environments

master
Tudor Stanciu 2025-04-28 00:00:12 +03:00
parent 5ac3ec74b6
commit 984ee08a95
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# BUILD ENVIRONMENT
FROM node:20-slim AS builder
FROM node:23-slim AS builder
WORKDIR /app
ARG APP_SUBFOLDER=""
@ -15,7 +15,7 @@ COPY . ./
RUN if [ -z "$APP_SUBFOLDER" ]; then npm run build; else PUBLIC_URL=/${APP_SUBFOLDER}/ npm run build; fi
# PRODUCTION ENVIRONMENT
FROM node:20-slim
FROM node:23-slim
ARG APP_SUBFOLDER=""