docker与凉亭,咕噜声

我试图build立一个与咕噜和鲍尔docker的形象,但我得到以下exception

2015/01/19 23:21:55命令[/ bin / sh -c grunt]返回一个非零的代码:1

类似的例外打印也。 我的Dockerfile就像。

可能是什么问题?

FROM ubuntu:14.04 RUN apt-get update RUN apt-get install -y node npm git git-core RUN ln -s /usr/bin/nodejs /usr/bin/node COPY . /app WORKDIR /app RUN npm install -g bower RUN npm install -g grunt-cli RUN npm install # RUN bower install RUN grunt RUN grunt serve EXPOSE 9000 

BTW。 我没有把握这个docker工的事情。 我用input图像

 docker run -t -i a87274a7f3b7 /bin/bash 

和运行

 grunt 

但没有任何反应,只是没有做任何事情,并没有给出任何错误。

编辑这一个似乎工作

 FROM ubuntu:14.04 RUN apt-get update RUN apt-get install -y nodejs npm git git-core RUN ln -s /usr/bin/nodejs /usr/bin/node COPY . /app WORKDIR /app RUN npm install -g bower RUN npm install -g grunt-cli RUN npm install RUN bower install --allow-root RUN grunt RUN grunt serve EXPOSE 9000 

在Ubuntu库中,节点不是nodejs,它是一个名为ax25-node的ham无线电节点程序,它被安装为/ usr / sbin / node。 然后Grunt会感到困惑,因为它仅仅是一个带有shebang #!/usr/bin/env node的脚本,并会执行任何等同于$PATH node的脚本。

修理:

更换

 RUN apt-get install -y node npm git git-core 

 RUN apt-get install -y nodejs npm git git-core