Updated the build pipeline to use Node 22 + npm 11 and to skip dev dependencies during production builds.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user