From b1a02d6b0d7bccc110e8316e3406fa828ca0d9fd Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Wed, 8 Jul 2026 15:54:41 +0330 Subject: [PATCH] mirror --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e9df89..97bbbb7 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,14 @@ FROM node:22-alpine AS base ENV TZ=Asia/Tehran -ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com +# Use the public npm registry to avoid paid/unstable mirror outages. +ENV NPM_CONFIG_REGISTRY=https://registry.npmjs.org # Change Alpine repo RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories # Install pnpm globally (uses NPM_CONFIG_REGISTRY mirror above). -RUN npm install -g pnpm@9.15.9 +RUN npm install -g pnpm@9.15.9 --registry=https://registry.npmjs.org # Stage 2: Install all dependencies (including dev) FROM base AS deps @@ -20,7 +21,7 @@ ENV NODE_ENV=development # RUN pnpm install --frozen-lockfile --loglevel info \ # --registry=https://mirror-npm.runflare.com -RUN pnpm install --frozen-lockfile --loglevel info +RUN pnpm install --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org # Stage 3: Build @@ -36,7 +37,7 @@ WORKDIR /temp-deps COPY package.json pnpm-lock.yaml ./ # RUN pnpm install --prod --frozen-lockfile --loglevel info \ # --registry=https://mirror-npm.runflare.com -RUN pnpm install --prod --frozen-lockfile --loglevel info +RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org # Stage 5: Runner