Tengo una imagen acoplable que se instala grunt, pero cuando intento ejecutarla, aparece un error:
Error response from daemon: Cannot start container foo_1: \
exec: "grunt serve": executable file not found in $PATH
Si ejecuto bash en modo interactivo, gruntestá disponible.
¿Qué estoy haciendo mal?
Aquí está mi Dockerfile:
# https://registry.hub.docker.com/u/dockerfile/nodejs/ (builds on ubuntu:14.04)
FROM dockerfile/nodejs
MAINTAINER My Name, me@email.com
ENV HOME /home/web
WORKDIR /home/web/site
RUN useradd web -d /home/web -s /bin/bash -m
RUN npm install -g grunt-cli
RUN npm install -g bower
RUN chown -R web:web /home/web
USER web
RUN git clone https://github.com/repo/site /home/web/site
RUN npm install
RUN bower install --config.interactive=false --allow-root
ENV NODE_ENV development
# Port 9000 for server
# Port 35729 for livereload
EXPOSE 9000 35729
CMD ["grunt"]
CMD grunt?¿Quiere decir soltar el ["y "]?
CMD ["grunt"]aCMD grunt
CMD ["grunt"]utiliza otro shell para ejecutar el comando, es probable que en ese shell $ PATH no se establezca.

CMD grunt? ¿O puede intentar ejecutar el comando gruñido pasando la ruta completa?