Use node 22 slim for frontend npm network compatibility
This commit is contained in:
@@ -44,6 +44,8 @@ docker compose logs -f
|
|||||||
|
|
||||||
## Frontend Build Network Resilience
|
## Frontend Build Network Resilience
|
||||||
|
|
||||||
|
The frontend Dockerfile uses `node:22-slim` by default for improved npm network compatibility on IPv4-only Linux hosts.
|
||||||
|
|
||||||
The frontend image build supports npm fetch tuning through environment-driven compose build args:
|
The frontend image build supports npm fetch tuning through environment-driven compose build args:
|
||||||
|
|
||||||
- `NPM_REGISTRY` (default `https://registry.npmjs.org/`)
|
- `NPM_REGISTRY` (default `https://registry.npmjs.org/`)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:22-alpine
|
FROM node:22-slim
|
||||||
|
|
||||||
ARG NPM_REGISTRY=https://registry.npmjs.org/
|
ARG NPM_REGISTRY=https://registry.npmjs.org/
|
||||||
ARG NPM_FETCH_RETRIES=5
|
ARG NPM_FETCH_RETRIES=5
|
||||||
|
|||||||
Reference in New Issue
Block a user