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

@@ -30,7 +30,7 @@ x-app-build: &app-build
target: app
args:
PHP_VERSION: ${PHP_VERSION:-8.3}
NODE_VERSION: ${NODE_VERSION:-20}
NODE_VERSION: ${NODE_VERSION:-22}
cache_from:
- type=registry,ref=${APP_IMAGE_CACHE:-fotospiel-app:buildcache}
cache_to:
@@ -74,12 +74,12 @@ services:
restart: unless-stopped
docs-build:
image: node:20
image: node:22
working_dir: /var/www/html/docs/site
command:
- bash
- -lc
- npm ci && npm run build
- npm install -g npm@11 && npm ci && npm run build
volumes:
- app-code:/var/www/html
env_file: