Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Simoneu01 authored Jan 14, 2024
1 parent 96c8081 commit f3abba2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ USER runner
ENV NODE_VERSION=20.11.0
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
ENV NVM_DIR=/runner/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/runner/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN source ~/.bashrc && nvm install ${NODE_VERSION}
RUN nvm use v${NODE_VERSION}
RUN nvm alias default v${NODE_VERSION}
RUN node --version
RUN npm --version

0 comments on commit f3abba2

Please sign in to comment.