build(docker/frontend): fix conditional npm proxy conf

This commit is contained in:
Sarah Vaupel 2025-01-15 15:18:15 +01:00
parent 7228868f08
commit 23dec225a9

View File

@ -21,8 +21,8 @@ ENV CHROME_BIN=chromium
# 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}"
RUN if [ ! -z "${HTTP_PROXY}" ]; then npm config set proxy ${HTTP_PROXY}; fi
RUN if [ ! -z "${FRAPORT_NOPROXY}" ]; then npm config set noproxy "${FRAPORT_NOPROXY}"; fi
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.