Skip to content

Commit 2fcee02

Browse files
committed
added a longer timeout to npm installs
1 parent 7302165 commit 2fcee02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR /app
1111

1212
COPY package*.json ./
1313

14-
RUN npm install --no-install-recommends
14+
RUN npm install --no-install-recommends --fetch-retry-maxtimeout 300000
1515

1616
COPY . .
1717

@@ -22,9 +22,9 @@ WORKDIR /app
2222

2323
COPY --from=build /app/package*.json ./
2424

25-
RUN npm install --no-install-recommends --only=production
25+
RUN npm install --no-install-recommends --only=production --fetch-retry-maxtimeout 300000
2626

27-
COPY --from=build /app/.env .env
27+
# COPY --from=build /app/.env .env
2828
COPY --from=build /app/config.js ./config.js
2929
COPY --from=build /app/server ./server
3030
COPY --from=build /app/app/dist /app

0 commit comments

Comments
 (0)