Skip to content

Commit 25681fa

Browse files
author
js-jslog
committed
Update nvm and node versions
1 parent 502e7d0 commit 25681fa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,23 @@ RUN apt-get update && apt-get install -y -q --no-install-recommends \
2222
&& rm -rf /var/lib/apt/lists/*
2323

2424
ENV NVM_DIR /usr/local/nvm
25-
ENV NODE_VERSION 0.10.33
25+
ENV NODE_VERSION 10.15.1
2626

2727
# 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 \
2929
&& . $NVM_DIR/nvm.sh \
3030
&& nvm install $NODE_VERSION \
3131
&& nvm alias default $NODE_VERSION \
3232
&& nvm use default
3333

3434
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
3735

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
4042

4143
RUN add-apt-repository ppa:jonathonf/vim -y
4244
RUN apt update

0 commit comments

Comments
 (0)