From 3d86cd3225ea64f98e753034bba0257884f2b0ce Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 15 Jan 2025 14:55:15 +0100 Subject: [PATCH] build(docker/frontend): configure npm proxy if supported --- docker/frontend/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile index 1203d66b3..da4026a36 100644 --- a/docker/frontend/Dockerfile +++ b/docker/frontend/Dockerfile @@ -20,6 +20,11 @@ ENV CHROME_BIN=chromium # RUN npm install -g n # RUN n 20.17.0 +# configure npm to use given proxy if given +RUN ${HTTP_PROXY} && npm config set proxy ${HTTP_PROXY} +RUN ${FRAPORT_NOPROXY} && npm config set noproxy "${FRAPORT_NOPROXY}" +ENV NODE_EXTRA_CA_CERTS: "/etc/ssl/certs/ca-certificates.crt" + # locally these two should be identical, so that compilation results are written out into the file dir. # in CI-pipelines these two should be different, so that the container caches the compilation results. ARG MOUNT_DIR=/mnt/fradrive