【发布时间】:2017-10-20 12:19:15
【问题描述】:
我的 Dockerfile 中有以下内容:
run apt-get update; \
apt-get install -y curl && \
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
按照这行代码,我需要在新的 bash shell 中运行命令,以便使用从 NVM 脚本设置的环境变量。
我已经厌倦了以下安装 Nodejs 并且它不起作用:
run ["/bin/bash", "-c", "nvm install 8.7.0"]
我能做什么?
【问题讨论】: