title: docker-compose can't find/run start.sh
body: <p>I'm working on a docker-compose setup for my django/react app for development purposes. I've got everything working with the Django Dockerfile, but with React I've been struggling with getting it to run my <code>start.sh</code>. It seems it can't find it.</p>
  
  <p>Error:</p>
  
  <pre><code>ERROR: for node_server  Cannot start service node: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/start.sh\": stat /start.sh: no such file or directory": unknown
  compose.parallel.parallel_execute_iter: Failed: &lt;Service: node&gt;
  compose.parallel.feed_queue: Pending: set()
  
  ERROR: for node  Cannot start service node: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"/start.sh\": stat /start.sh: no such file or directory": unknown
  ERROR: compose.cli.main.main: Encountered errors while bringing up the project.
  </code></pre>
  
  <p>node Dockerfile:</p>
  
  <pre><code>FROM node:11-alpine
  
  RUN mkdir /code
  WORKDIR /code
  
  ADD ./frontend .
  
  RUN npm install
  
  COPY ./docker_compose/node/development/start.sh /code/start.sh
  RUN sed -i 's/\r//' start.sh \
      &amp;&amp; chmod +x start.sh
  </code></pre>
  
  <p>Full docker-compose-dev.yml:</p>
  
  <pre><code>version: '3'
  
  services:
  
    postgres:
      container_name: postgres_server
      image: postgres:11-alpine
      env_file: .env
      ports:
        - 5432:5432
      volumes:
        - local_postgres_data_dev:/var/lib/postgresql/data
        - local_postgres_backup_dev:/backups
  
    node:
      container_name: node_server
      build:
        context: .
        dockerfile: ./docker_compose/node/development/Dockerfile
      command: /start.sh
      volumes:
        - .:/code
      ports:
        - "3000:3000"
  
    django:
      container_name: django_server
      build:
        context: .
        dockerfile: ./docker_compose/django/development/Dockerfile
      depends_on:
        - postgres
        - node
      volumes:
        - .:/code
      env_file: .env
      ports:
        - "8000:8000"
      command: /start.sh
  
  volumes:
    local_postgres_data_dev: {}
    local_postgres_backup_dev: {}
  </code></pre>
  
  <p>start.sh:</p>
  
  <pre><code>#!/bin/ash
  npm start
  </code></pre>
  
  <p>Project structure:</p>
  
  <pre><code>.
  ├── api
  ├── financeApp
  ├── config
  ├── datadumps
  ├── docker-compose-dev.yml
  ├── docker-compose.yml
  ├── docker_compose
  ├── frontend (this is my react app)
  ├── manage.py
  ├── requirements
  └── templates
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>If I change <code>command</code> in docker-compose to <code>command: ls</code> this is what is returned:</p>
  
  <pre><code>node_server | api
  node_server | financeApp
  node_server | config
  node_server | datadumps
  node_server | docker-compose-dev.yml
  node_server | docker-compose.yml
  node_server | docker_compose
  node_server | frontend
  node_server | manage.py
  node_server | requirements
  node_server | templates
  </code></pre>
  
  <p>So it looks like <code>start.sh</code> isn't even there?</p>