Route npm through corporate proxy
This commit is contained in:
@@ -2,6 +2,9 @@ FROM node:22-slim
|
||||
|
||||
COPY bokca.pem /usr/local/share/ca-certificates/bokca.crt
|
||||
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/bokca.crt
|
||||
ENV HTTP_PROXY=http://10.16.57.123:31443 \
|
||||
HTTPS_PROXY=http://10.16.57.123:31443 \
|
||||
NO_PROXY=localhost,127.0.0.1
|
||||
RUN npm config set cafile /usr/local/share/ca-certificates/bokca.crt
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user