From a1220db844b22d41d93a0605fd2a12091071c1c0 Mon Sep 17 00:00:00 2001 From: MMD Date: Wed, 7 Oct 2026 15:28:43 +0330 Subject: [PATCH] build(pm): mirror-aware pip/npm registries in PM Dockerfiles (same pattern as api/frontend/bot) --- pm/frontend/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pm/frontend/Dockerfile b/pm/frontend/Dockerfile index f1f746e..f6e7c64 100644 --- a/pm/frontend/Dockerfile +++ b/pm/frontend/Dockerfile @@ -2,8 +2,11 @@ FROM node:22-alpine AS build WORKDIR /app +# NPM_REGISTRY overridable like the ERP frontend image; npmmirror default +# because registry.npmjs.org is unreachable from this network. +ARG NPM_REGISTRY=https://registry.npmmirror.com COPY package.json package-lock.json ./ -RUN npm ci +RUN npm config set registry ${NPM_REGISTRY} && npm ci COPY . . RUN npm run build