change registry
This commit is contained in:
+9
-8
@@ -1,19 +1,20 @@
|
||||
FROM node:22
|
||||
FROM docker.iranserver.com/node:20
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json .npmrc ./
|
||||
COPY scripts ./scripts
|
||||
|
||||
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 NPM_CONFIG_REGISTRY=https://mirror2.chabokan.net/npm/
|
||||
RUN npm config set registry https://mirror2.chabokan.net/npm/ \
|
||||
&& npm config set replace-registry-host npmjs \
|
||||
&& 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 NODE_ENV=development
|
||||
RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --legacy-peer-deps
|
||||
RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --legacy-peer-deps --registry=https://mirror2.chabokan.net/npm/
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user