Use node 22 slim for frontend npm network compatibility

This commit is contained in:
2026-03-02 15:00:02 -03:00
parent c47fc48533
commit 8dded6383e
2 changed files with 3 additions and 1 deletions

View File

@@ -44,6 +44,8 @@ docker compose logs -f
## 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:
- `NPM_REGISTRY` (default `https://registry.npmjs.org/`)

View File

@@ -1,4 +1,4 @@
FROM node:22-alpine
FROM node:22-slim
ARG NPM_REGISTRY=https://registry.npmjs.org/
ARG NPM_FETCH_RETRIES=5