title: /bin/sh: 1: poetry: not found
body: <p>i'm trying to build a docker file with docker-compose up but i get error:</p>
  
  <pre><code>/bin/sh: 1: poetry: not found
  ERROR: Service 'web' failed to build: The command '/bin/sh -c poetry install &amp;&amp; bundler install' returned a non-zero code: 127
  </code></pre>
  
  <p>here it is my docker file and docker-compose-yml file:
  dockerfile:</p>
  
  <pre><code>FROM python:2.7
  
  ENV LIBRARY_PATH=/lib:/usr/lib
  
  RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
  
  WORKDIR /stream
  
  ADD . /stream
  
  CMD ["cat", "/etc/os-release"]
  
  
  RUN poetry install &amp;&amp; \
  bundler install
  
  
  EXPOSE 8000
  
  CMD ["poetry", "run", "python", "manage.py", "runserver", "0.0.0.0:8000"]
  </code></pre>
  
  <p>docker-compose:</p>
  
  <pre><code>version: '3'
  
  services:
    redis:
      image: redis
      ports:
        - 6379
    web:
      build: .
      ports:
        - 8000:8000
      environment:
        - REDISTOGO_URL=redis://redis:6379
      depends_on:
        - redis
  </code></pre>