Skip to content

Commit 92efd2d

Browse files
committed
fix(dockerfile, dockerfile.prod): fixed the wrong npm config now using fetch-retry-maxtimeout
1 parent f8f3cbb commit 92efd2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/Dockerfile-prod.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY package.json yarn.lock ./
1010
RUN yarn config set network-timeout 600000 -g && yarn install --production
1111
{%- else %}
1212
COPY package.json package-lock.json ./
13-
RUN npm config set network-timeout 600000 -g && npm install --only=production
13+
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production
1414
{%- endif %}
1515
ENV PATH /opt/node_modules/.bin:$PATH
1616
WORKDIR /opt/app

templates/Dockerfile.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY package.json yarn.lock ./
1010
RUN yarn config set network-timeout 600000 -g && yarn install
1111
{%- else %}
1212
COPY package.json package-lock.json ./
13-
RUN npm config set network-timeout 600000 -g && npm install
13+
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install
1414
{%- endif %}
1515

1616
WORKDIR /opt/app

0 commit comments

Comments
 (0)