From 8dded6383e41af830503dbb80f4c6e60944aaab4 Mon Sep 17 00:00:00 2001 From: Beda Schmid Date: Mon, 2 Mar 2026 15:00:02 -0300 Subject: [PATCH] Use node 22 slim for frontend npm network compatibility --- doc/operations-and-configuration.md | 2 ++ frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/operations-and-configuration.md b/doc/operations-and-configuration.md index ab33558..7f5912c 100644 --- a/doc/operations-and-configuration.md +++ b/doc/operations-and-configuration.md @@ -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/`) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f9a1dfa..1a7f121 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine +FROM node:22-slim ARG NPM_REGISTRY=https://registry.npmjs.org/ ARG NPM_FETCH_RETRIES=5