I have this Dockerfile:
FROM node:argon ENV http_proxy http://user:pass@proxy.company.priv:3128 ENV https_proxy https://user:pass@proxy.company.priv:3128 RUN m
Adding this to Dockerfile worked for me:
RUN npm config set https-proxy http://user:password@proxy.company.priv:80 RUN npm config set proxy http://user:password@proxy.company.priv:80