We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25681fa commit 132a09bCopy full SHA for 132a09b
Dockerfile
@@ -1,5 +1,9 @@
1
FROM ubuntu:xenial
2
3
+ARG http_proxy=$http_proxy
4
+ARG https_proxy=$http_proxy
5
+ARG HTTP_PROXY=$http_proxy
6
+ARG HTTPS_PROXY=$http_proxy
7
ENV TERM=xterm-256color
8
9
# Replace shell with bash so we can source files
@@ -36,7 +40,8 @@ RUN source /root/.bashrc
36
40
ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
37
41
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
38
42
39
-# TODO: add npm proxy if relevant
43
+RUN npm set proxy $http_proxy
44
+RUN npm set https-proxy $http_proxy
45
RUN npm install -g eslint
46
RUN npm install -g eslint-config-airbnb
47
0 commit comments