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