Skip to content

Commit

Permalink
fix: try to make nvm work (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam authored Feb 6, 2024
1 parent 6351ec1 commit 04f9d27
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,13 +69,13 @@ RUN apt-get update && apt-get install -y \

# NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
RUN export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh"
RUN export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && echo $PATH

# Node.js
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 . "$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 04f9d27

Please sign in to comment.