Skip to content

Commit

Permalink
dockerfile: Increase yarn network timeout (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Padilha <[email protected]>

Signed-off-by: Thiago Padilha <[email protected]>
  • Loading branch information
tchrono authored Nov 24, 2022
1 parent 09ae1b6 commit 1a4a182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY . .
RUN chown -R node:node /build
USER node

RUN yarn install && yarn build
RUN yarn install --network-timeout 1000000 && yarn build
RUN ./node_modules/.bin/tsc --noEmit false --outDir tsbuild

# TODO: require full node for dependencies
Expand All @@ -25,7 +25,7 @@ COPY --from=builder /build/tsbuild/common/ common/

RUN chown -R node:node /app
USER node
RUN yarn install --production && yarn cache clean
RUN yarn install --network-timeout 1000000 --production && yarn cache clean

ENV NODE_ENV=production
EXPOSE 5489
Expand Down

0 comments on commit 1a4a182

Please sign in to comment.