Updated the build pipeline to use Node 22 + npm 11 and to skip dev dependencies during production builds.

This commit is contained in:
Codex Agent
2025-12-15 09:19:39 +01:00
parent a8b6e5d9c4
commit 763af12617
2 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.6
ARG PHP_VERSION=8.3
ARG NODE_VERSION=20
ARG NODE_VERSION=22
################################################################################
# Composer dependencies
@@ -39,7 +39,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json ./
RUN npm ci --no-audit --prefer-offline
RUN npm install -g npm@11 \
&& npm ci --omit=dev --no-audit --prefer-offline
COPY . .
COPY --from=vendor /var/www/html/vendor ./vendor