File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,23 @@ RUN apt-get update && apt-get install -y -q --no-install-recommends \
22
22
&& rm -rf /var/lib/apt/lists/*
23
23
24
24
ENV NVM_DIR /usr/local/nvm
25
- ENV NODE_VERSION 0. 10.33
25
+ ENV NODE_VERSION 10.15.1
26
26
27
27
# Install nvm with node and npm
28
- RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0 /install.sh | bash \
28
+ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1 /install.sh | bash \
29
29
&& . $NVM_DIR/nvm.sh \
30
30
&& nvm install $NODE_VERSION \
31
31
&& nvm alias default $NODE_VERSION \
32
32
&& nvm use default
33
33
34
34
RUN source /root/.bashrc
35
- # RUN /usr/local/nvm/v$NODE_VERSION/bin/npm install -g eslint
36
- # RUN /usr/local/nvm/v$NODE_VERSION/bin/npm install -g eslint-config-airbnb
37
35
38
- ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
39
- ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
36
+ ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
37
+ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
38
+
39
+ # TODO: add npm proxy if relevant
40
+ RUN npm install -g eslint
41
+ RUN npm install -g eslint-config-airbnb
40
42
41
43
RUN add-apt-repository ppa:jonathonf/vim -y
42
44
RUN apt update
You can’t perform that action at this time.
0 commit comments