Skip to content

Commit 132a09b

Browse files
author
js-jslog
committed
move proxy out to build args
1 parent 25681fa commit 132a09b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM ubuntu:xenial
22

3+
ARG http_proxy=$http_proxy
4+
ARG https_proxy=$http_proxy
5+
ARG HTTP_PROXY=$http_proxy
6+
ARG HTTPS_PROXY=$http_proxy
37
ENV TERM=xterm-256color
48

59
# Replace shell with bash so we can source files
@@ -36,7 +40,8 @@ RUN source /root/.bashrc
3640
ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
3741
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
3842

39-
# TODO: add npm proxy if relevant
43+
RUN npm set proxy $http_proxy
44+
RUN npm set https-proxy $http_proxy
4045
RUN npm install -g eslint
4146
RUN npm install -g eslint-config-airbnb
4247

0 commit comments

Comments
 (0)