OKR/build-image/node/Dockerfile_nvm

11 lines
427 B
Plaintext

FROM ubuntu:23.04
LABEL smallkoudai <smallkoudai@gmail.com>
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates curl git git-lfs && \
mkdir -p $HOME/.nvm && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && \
. $HOME/.bashrc && \
nvm install 16.20.1 && nvm alias default && nvm install 18.17.0 && nvm install 20.5.0
ENV NVM_DIR=$HOME/.nvm