build(pm): mirror-aware pip/npm registries in PM Dockerfiles (same pattern as api/frontend/bot)

This commit is contained in:
MMD
2026-10-07 15:28:43 +03:30
parent 1190ec42eb
commit a1220db844
+4 -1
View File
@@ -2,8 +2,11 @@
FROM node:22-alpine AS build FROM node:22-alpine AS build
WORKDIR /app 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 ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm config set registry ${NPM_REGISTRY} && npm ci
COPY . . COPY . .
RUN npm run build RUN npm run build