Skip to content

Commit

Permalink
fix(dockerfile, dockerfile.prod): fixed the wrong npm config now usin…
Browse files Browse the repository at this point in the history
…g fetch-retry-maxtimeout
  • Loading branch information
Eventyret committed Jul 18, 2023
1 parent f8f3cbb commit 92efd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/Dockerfile-prod.liquid
Expand Up @@ -10,7 +10,7 @@ COPY package.json yarn.lock ./
RUN yarn config set network-timeout 600000 -g && yarn install --production
{%- else %}
COPY package.json package-lock.json ./
RUN npm config set network-timeout 600000 -g && npm install --only=production
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production
{%- endif %}
ENV PATH /opt/node_modules/.bin:$PATH
WORKDIR /opt/app
Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile.liquid
Expand Up @@ -10,7 +10,7 @@ COPY package.json yarn.lock ./
RUN yarn config set network-timeout 600000 -g && yarn install
{%- else %}
COPY package.json package-lock.json ./
RUN npm config set network-timeout 600000 -g && npm install
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install
{%- endif %}

WORKDIR /opt/app
Expand Down

0 comments on commit 92efd2d

Please sign in to comment.