baxin commited on
Commit
9bc7ed7
·
1 Parent(s): 2a8e04e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -30,11 +30,12 @@ RUN ls
30
 
31
  RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
32
 
33
- # Install nvm with Node.js and npm
34
- RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash \
35
- && . $HOME/.nvm/nvm.sh \
36
- && nvm install 16.9.0 \
37
- && nvm alias default 16.9.0 \
 
38
  && nvm use default
39
 
40
  # Set up PATH so that Node.js and npm can be found
 
30
 
31
  RUN /bin/bash -c "source ~/.bashrc && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn"
32
 
33
+ ENV NODE_VERSION 16.18.0
34
+ # Install nvm with node and npm
35
+ RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \
36
+ && . $NVM_DIR/nvm.sh \
37
+ && nvm install $NODE_VERSION \
38
+ && nvm alias default $NODE_VERSION \
39
  && nvm use default
40
 
41
  # Set up PATH so that Node.js and npm can be found