Skip to content

Commit

Permalink
fix: nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Feb 6, 2024
1 parent 07ef870 commit 0364e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions focal-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ RUN apt-get update && apt-get install -y \

# NVM
ENV NVM_VERSION v0.39.7
ENV NVM_DIR /root/nvm
ENV NVM_DIR /$HOME/.nvm
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN mkdir $NVM_DIR
Expand All @@ -79,7 +79,7 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | b
RUN wget https://unofficial-builds.nodejs.org/download/release/v18.19.0/node-v18.19.0-linux-x64-glibc-217.tar.xz
RUN tar -xf node-v18.19.0-linux-x64-glibc-217.tar.xz
RUN mkdir -p ~/.nvm/versions/node && mv node-v18.19.0-linux-x64-glibc-217 ~/.nvm/versions/node/v18.99.0
RUN nvm use 18.99.0
RUN bash -c 'source $NVM_DIR/nvm.sh && nvm use 18.99.0'
RUN npm install -g npm@latest node-gyp yarn

# Set python3 as default
Expand Down

0 comments on commit 0364e38

Please sign in to comment.