From aaef1971a375492b915ee888c5b82786d96c5f5a Mon Sep 17 00:00:00 2001 From: Pilou <24897252+plmercereau@users.noreply.github.com> Date: Thu, 20 Jan 2022 12:31:08 +0100 Subject: [PATCH] ci: increase yarn network timeout See https://github.com/docker/build-push-action/issues/471 https://github.com/nodejs/docker-node/issues/1335 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbe104324..13c4f09cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:14-alpine AS builder WORKDIR /app COPY package.json yarn.lock tsconfig.json tsconfig.build.json ./ -RUN yarn install +RUN yarn install --frozen-lockfile --network-timeout 1000000 COPY src/ ./src/ COPY types/ ./types/ RUN yarn build @@ -13,9 +13,9 @@ ENV AUTH_HOST localhost ENV AUTH_PORT 4000 WORKDIR /app COPY package.json yarn.lock ./ -RUN yarn install --production && yarn cache clean +RUN yarn install --production --frozen-lockfile --network-timeout 1000000 && yarn cache clean COPY migrations/ ./migrations/ COPY email-templates/ ./email-templates COPY --from=builder ./app/dist dist/ HEALTHCHECK --interval=60s --timeout=2s --retries=3 CMD wget ${AUTH_HOST}:${AUTH_PORT}/healthz -q -O - > /dev/null 2>&1 -CMD ["yarn", "run", "start"] \ No newline at end of file +CMD ["yarn", "run", "start"]