FROM python:2.7 # Set the application directory WORKDIR /app # Install requirements.txt ADD Example/requirements.txt /app/requirements.txt RUN pip install -r requirements.txt Make port 5000 available EXPOSE 5000 ADD /Example/app.py /app/app.py # Define command to be run when launching the container CMD ["python", "app:app"]