From bfc449dd79772f2b976ee588a549e6e98e464419 Mon Sep 17 00:00:00 2001 From: safavimohadeseh78 Date: Thu, 10 Sep 2026 12:14:21 +0330 Subject: [PATCH] change registry --- .npmrc | 7 ++++++- Dockerfile | 15 +++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.npmrc b/.npmrc index 27cd51a..30d4081 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,8 @@ -registry=https://registry.npmmirror.com +registry=https://registry.npmjs.org replace-registry-host=always legacy-peer-deps=true +fetch-retries=5 +fetch-retry-mintimeout=20000 +fetch-retry-maxtimeout=120000 +fetch-timeout=60000 +maxsockets=10 diff --git a/Dockerfile b/Dockerfile index 253578f..9f9ca62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,15 @@ WORKDIR /app COPY package.json package-lock.json .npmrc ./ COPY scripts ./scripts -ENV NPM_CONFIG_REGISTRY=https://registry.npmmirror.com -RUN npm config set registry https://registry.npmmirror.com \ - && npm config set replace-registry-host always \ - && npm config set fetch-retry-mintimeout 10000 \ - && npm config set fetch-retry-maxtimeout 120000 \ - && npm config set fetch-timeout 120000 \ - && npm config set fetch-retries 5 +ENV NPM_CONFIG_REGISTRY=https://registry.npmjs.org +ENV NPM_CONFIG_FETCH_RETRIES=5 +ENV NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=20000 +ENV NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=120000 +ENV NPM_CONFIG_FETCH_TIMEOUT=60000 +ENV NPM_CONFIG_MAXSOCKETS=10 ENV NODE_ENV=development -RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --legacy-peer-deps --registry=https://registry.npmmirror.com +RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --legacy-peer-deps COPY . .