change registry
This commit is contained in:
@@ -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
|
||||
|
||||
+7
-8
@@ -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 . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user