title: How to install gulp on a docker with docker-compose
body: <p>I am using docker compose and this is my yaml file</p>
  
  <pre><code>web:
    dockerfile: Dockerfile-dev
    build: .
    command: gulp
    volumes:
      - .:/app
    ports:
      - '9001:9001'
  </code></pre>
  
  <p>and here is my docker file</p>
  
  <pre><code>FROM node:0.12.7
  
  RUN npm install -g bower gulp
  
  ADD . /app
  WORKDIR /app
  
  RUN bower install --allow-root
  </code></pre>
  
  <p>Then i run</p>
  
  <pre><code>docker-compose -f docker-compose-dev.yml build
  docker-compose -f docker-compose-dev.yml up
  </code></pre>
  
  <p>But i get the following error</p>
  
  <pre><code>Recreating web_web_1...
  Attaching to web_web_1
  web_1 | [07:39:08] Local gulp not found in /app
  web_1 | [07:39:08] Try running: npm install gulp
  web_web_1 exited with code 1
  Gracefully stopping... (press Ctrl+C again to force)**strong text**
  </code></pre>
  
  <p>I have tried adding the line <code>RUN npm install gulp</code> before and after <code>WORKDIR /app</code> to get it installed locally but i get the same error</p>
  
  <p>Help</p>