title: Docker Compose w/ Gulp - Local gulp not found
body: <p>I am attempting to use gulp inside a Docker container.</p>
  
  <p>I have the following <code>Dockerfile</code></p>
  
  <pre><code>FROM golang:alpine
  RUN apk --update add --no-cache git nodejs
  RUN npm install --global gulp
  ENV GOPATH=/go PATH=$PATH:/go/bin
  VOLUME ["/go/src/github.com/me/sandbox", "/go/pkg","/go/bin"]
  WORKDIR /go/src/github.com/me/sandbox
  CMD ["gulp"]
  </code></pre>
  
  <p>and I have the following <code>docker-compose.yml</code></p>
  
  <pre><code>version: '2'
  services:
  service:
      build: ./service
      volumes:
          - ./service/src/:/go/src/github.com/me/sandbox
  </code></pre>
  
  <p><code>docker-compose build</code> builds successfully, but when I run <code>docker-compose up</code>, I get the following error message</p>
  
  <pre><code>Recreating sandbox_service_1
  Attaching to sandbox_service_1
  service_1  | [22:03:40] Local gulp not found in /go/src/github.com/me/sandbox
  service_1  | [22:03:40] Try running: npm install gulp
  </code></pre>
  
  <p>I have tried several different things to try to fix it.</p>
  
  <ul>
  <li>Tried also installing <code>gulp-cli</code> globally and locally</li>
  <li>Tried installing <code>gulp</code> locally with <code>npm install gulp</code></li>
  <li>Tried moving the <code>npm install --global gulp</code> after the <code>WORKDIR</code></li>
  <li>Tried different paths for volumes.</li>
  </ul>
  
  <p>My guess is that it has something to do with the volumes, because when I get rid of anything having to do with a volume, it doesn't complain.</p>
  
  <p>Mr project structure is shown in screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/Bguo0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bguo0.png" alt="enter image description here"></a></p>