title: problems running Docker container in Cypress
body: <p>The docker container 'will build' but for some reason 'will not run'.  I've trying to resolve this but I think I need a fresh pair of eyes on it.</p>
  <p>Here is the code:</p>
  <p>Docker file:</p>
  <pre><code>FROM cypress/included:6.8.0
  WORKDIR /app
  COPY . /app
  RUN npm install
  RUN $(npm bin)/ cypress  verify
  RUN $(npm bin)/cypress 
  </code></pre>
  <p>The docker ignore file</p>
  <pre><code>node_modules
  </code></pre>
  <p>The docker-compose.yml file</p>
  <pre><code>version: '3'
  services: 
      e2e:
          image: cypress
          build: .
          container_name: cypress
          command: 
              npx cypress run
  </code></pre>
  <p>I got the following error message in my terminal</p>
  <pre><code>docker-compose -f docker-compose.yml up
  Building e2e
  [+] Building 293.8s (9/10)                                                                       
   =&gt; [internal] load build definition from Dockerfile                                        0.1s
   =&gt; =&gt; transferring dockerfile: 36B                                                         0.0s
   =&gt; [internal] load .dockerignore                                                           0.0s
   =&gt; =&gt; transferring context: 34B                                                            0.0s
   =&gt; [internal] load metadata for docker.io/cypress/included:6.8.0                           0.0s
   =&gt; [1/6] FROM docker.io/cypress/included:6.8.0                                             0.0s
   =&gt; [internal] load build context                                                           0.0s
   =&gt; =&gt; transferring context: 1.14kB                                                         0.0s
   =&gt; CACHED [2/6] WORKDIR /app                                                               0.0s
   =&gt; [3/6] COPY . /app                                                                       0.1s
   =&gt; [4/6] RUN npm install                                                                 292.0s
   =&gt; ERROR [5/6] RUN $(npm bin)/ cypress  verify                                             1.4s
  ------                                                                                           
   &gt; [5/6] RUN $(npm bin)/ cypress  verify:                                                        
  #9 1.387 /bin/sh: 1: /app/node_modules/.bin/: Permission denied                                  
  ------                                                                                           
  executor failed running [/bin/sh -c $(npm bin)/ cypress  verify]: exit code: 126                 
  ERROR: Service 'e2e' failed to build
  xxx-MacBook-Air CypressDocker % 
  </code></pre>
  <p>@mosaad. I just tried your answer.  However I got the following error message</p>
  <pre><code>  =&gt; ERROR [5/6] RUN $(npm bin)/ cypress  verify                                             1.8s
  ------                                                                                           
   &gt; [5/6] RUN $(npm bin)/ cypress  verify:
  #9 1.705 /bin/sh: 1: /app/node_modules/.bin/: not found
  ------
  executor failed running [/bin/sh -c $(npm bin)/ cypress  verify]: exit code: 127
  ERROR: Service 'e2e' failed to build
  </code></pre>