Dockerfile 557 B

123456789101112131415161718
  1. # Using official python runtime base image
  2. FROM python:2.7-alpine
  3. # Set the application directory
  4. WORKDIR /app
  5. # Install our requirements.txt
  6. ADD requirements.txt /app/requirements.txt
  7. RUN pip install -r requirements.txt
  8. # Copy our code from the current folder to /app inside the container
  9. ADD . /app
  10. # Make port 80 available for links and/or publish
  11. EXPOSE 80
  12. # Define our command to be run when launching the container
  13. CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--log-file", "-", "--access-logfile", "-", "--workers", "4", "--keep-alive", "0"]