title: Simple Python Docker Script
body: <p>I have a very simple python script. I am trying to get it to run from within docker. I have simplified it so it just prints <code>hello world</code> now. </p>
  
  <p>My docker set up:</p>
  
  <p>[docker-compose.yaml]</p>
  
  <pre><code>version: '2'
  services:
     dev:
       build: .
       volumes:
          - ./app.py:/app.py
  </code></pre>
  
  <p>[Dockerfile]</p>
  
  <pre><code>FROM ubuntu
  RUN apt-get update -y
  RUN apt-get install -y python python-pip python-dev build-essential libpq-dev
  
  
  ADD ./requirements /code/requirements
  
  RUN pip install --upgrade pip
  
  RUN pip install -r /code/requirements/base.txt
  
  VOLUME /app.py
  
  CMD ["python","/app.py"]
  </code></pre>
  
  <p>When I run docker-compose up I get the following error:</p>
  
  <blockquote>
    <p>ERROR: for dev  Cannot start service dev: oci runtime error: exec:
    "Python": executable file not found in $PATH</p>
  </blockquote>
  
  <p>However, docker should be built into the Ubuntu Image. It is the same image I use for my Python Flask script but that works no issue. </p>