Docker with gazebo grumbling

I'm trying to create a docker image with grunts and a gazebo, but I get the following exception

2015/01/19 23:21:55 The command [/ bin / sh -c grunt] returned a non-zero code: 1

a similar exception is also printed for the gazebo. my docker file is similar.

what could be the problem?

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. I did not understand all this docker. I enter an image using

docker run -t -i a87274a7f3b7  /bin/bash

and jast run

grunt

but nothing happens, he does nothing and gives nothing.

change this one looks like working

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
+4
source share
1 answer

Ubuntu node nodejs, ham radio node ax25- node, /usr/sbin/ node. Grunt , script shebang #!/usr/bin/env node , node $PATH.

:

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

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

All Articles