build(docker/frontend): configure npm proxy if supported
This commit is contained in:
parent
66b64b818b
commit
3d86cd3225
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user