How to install nvm in docker?

后端 未结 14 960
陌清茗
陌清茗 2020-12-04 05:53

I am in the process of building a new Docker image and I\'m looking to get NVM installed so I can manage nodejs.

Reading the docs on how to install NVM they mention

14条回答
  •  感动是毒
    2020-12-04 07:00

    This is what worked for me (I'm using debian buster):

    RUN apt-get update
    RUN apt-get install -y build-essential checkinstall libssl-dev
    RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.1/install.sh | bash
    SHELL ["/bin/bash", "--login", "-c"]
    

    You should now be able to do nvm install .

提交回复
热议问题