From e551af80c49dd98849eee61d4280d9009087efa3 Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Thu, 22 Aug 2024 12:21:34 -0400 Subject: [PATCH] :seedling: Configure npm fetch timeout in Dockerfile build (#2060) Hopefully this will help fix arm64 build issues when running in qemu on github actions. Signed-off-by: Scott J Dickerson --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 79001f3d87..90a6baed5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,13 @@ FROM registry.access.redhat.com/ubi9/nodejs-18:1-118 as builder USER 1001 COPY --chown=1001 . . -RUN npm clean-install --ignore-scripts && npm run build && npm run dist +RUN npm version && \ + npm config --location=project set fetch-retry-maxtimeout 300000 && \ + npm config --location=project set fetch-retry-mintimeout 60000 && \ + npm config --location=project set fetch-timeout 600000 && \ + npm clean-install --verbose --ignore-scripts --no-audit && \ + npm run build && \ + npm run dist # Runner image FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:1-123