title: Dockerfile scrapy unknown command: crawl
body: <p>Hello i'm trying to run a CMD of my scrapy spider with the Dockerfile. I had set the path to the folder that contain scrapy scrapy.cfg folder and the CMD scrapy crawl estate to start the spider</p>
  
  <p>When i run docker-compose up it return with the error</p>
  
  <pre><code>Scrapy 1.5.0 - no active project
  web_1        |
  web_1        | Unknown command: crawl
  web_1        |
  web_1        | Use "scrapy" to see available commands
  </code></pre>
  
  <p>Here is my Dockefile</p>
  
  <pre><code>FROM ubuntu:18.04
  FROM python:3.6-onbuild
  RUN  apt-get update &amp;&amp;apt-get upgrade -y&amp;&amp; apt-get install python-pip -y
  RUN pip install --upgrade pip
  RUN pip install scrapy
  ADD . /scrapy_estate/tutorial
  WORKDIR /scrapy_estate/tutorial
  COPY requirements.txt ./
  RUN pip install --no-cache-dir -r requirements.txt
  COPY . .
  EXPOSE 80
  CMD scrapy crawl estate
  </code></pre>
  
  <p>My directory tree</p>
  
  <pre><code>spider
  ├── CreateDB.sql
  ├── docker-compose.yml
  ├── Dockerfile
  ├── initdb
  │   └── init.sql
  ├── init.sql
  ├── npm-debug.log
  ├── requirements.txt
  └── scrapy_estate
      └── tutorial
          ├── scrapy.cfg
          └── tutorial
              ├── __init__.py
              ├── items.py
              ├── middlewares.py
              ├── pipelines.py
              ├── __pycache__
              │   ├── __init__.cpython-36.pyc
              │   ├── items.cpython-36.pyc
              │   ├── middlewares.cpython-36.pyc
              │   ├── pipelines.cpython-36.pyc
              │   └── settings.cpython-36.pyc
              ├── settings.py
              └── spiders
                  ├── __init__.py
                  ├── __pycache__
                  │   ├── __init__.cpython-36.pyc
                  │   └── real_estate_spider.cpython-36.pyc
                  └── real_estate_spider.py
  </code></pre>
  
  <p>Did i put the WORKDIR wrong or my CMD is wrong ?
  Any help would be appreciate thank you</p>
  
  <p>EDIT:</p>
  
  <p>My serivce ls </p>
  
  <pre><code>2to3             __pycache__         docker-compose.yml.save  init.sql        
  pip           pydoc3.6        python3.6          requirements.txt   tkconch
  2to3-3.6         automat-visualize   easy_install             initdb          
  pip3          pyhtmlizer      python3.6-config   scrapy             trial
  CreateDB.sql     cftp                easy_install-3.6         items.py        
  pip3.6        python          python3.6m         scrapy_estate  twist
  Dockerfile       ckeygen             idle                     mailmail        
  pipelines.py  python-config   python3.6m-config  settings.py        twistd
  Dockerfile.save  conch               idle3                    middlewares.py  
  pydoc         python3         pyvenv             spiders            wheel
  __init__.py      docker-compose.yml  idle3.6                  npm-debug.log   
  pydoc3        python3-config  pyvenv-3.6         splash
  </code></pre>