title: Docker: ./entrypoint.sh not found
body: <p>I am trying to setup a django project and dockerize it.
  I'm having trouble running the container.
  As far as I know, it's successfully abe to build it, but fails to run.</p>
  
  <p>This is the error I get:</p>
  
  <blockquote>
    <p>ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./entrpoint.sh\": stat ./entrpoint.sh: no such file or directory": unknown
    ERROR: Encountered errors while bringing up the project.</p>
  </blockquote>
  
  <p>This is the dockerfile:</p>
  
  <pre><code>FROM python:3.6
  
  RUN mkdir /backend
  WORKDIR /backend
  ADD . /backend/
  
  RUN pip install -r requirements.txt
  
  RUN apt-get update \
      &amp;&amp; apt-get install -yyq netcat
  
  RUN chmod 755 entrypoint.sh
  
  ENTRYPOINT ["./entrpoint.sh"]
  </code></pre>
  
  <p>This is the compose file:</p>
  
  <pre><code>version: '3.7'
  
  services:
    db:
      image: postgres:12.0-alpine
      volumes:
        - postgres_data:/var/lib/postgresql/data/
      environment:
        - POSTGRES_USER=django
        - POSTGRES_PASSWORD=password
        - POSTGRES_DB=database
  
    web:
      restart: on-failure
      build: .
      container_name:backend
      volumes:
        - .:/backend
      env_file:
        - ./api/.env
      command: python manage.py runserver 0.0.0.0:8000
      ports:
        - "8000:8000"
      hostname: web
      depends_on:
        - db
  
  volumes:
    postgres_data:
  </code></pre>
  
  <p>And there is an entrypoint file which runs automatic migrations, if any:
  Here is the script:</p>
  
  <pre><code>#!/bin/sh
  
  if [ "$DATABASE" = "postgres" ]
  then
      echo "Waiting for postgres..."
  
      while ! nc -z $SQL_HOST $SQL_PORT; do
        sleep 0.1
      done
  
      echo "PostgreSQL started"
  fi
  
  python manage.py migrate
  
  exec "$@"
  </code></pre>
  
  <p>Where am I going wrong?</p>