arshad75

vote-dockerfile.yml

Apr 15th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # Using official python runtime base image
  2. FROM python:2.7-alpine
  3.  
  4. # Set the application directory
  5. WORKDIR /app
  6.  
  7. # Install our requirements.txt
  8. ADD requirements.txt /app/requirements.txt
  9. RUN pip install -r requirements.txt
  10.  
  11. # Copy our code from the current folder to /app inside the container
  12. ADD . /app
  13.  
  14. # Make port 80 available for links and/or publish
  15. EXPOSE 80
  16.  
  17. # Define our command to be run when launching the container
  18. CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--log-file", "-", "--access-logfile", "-", "--workers", "4", "--keep-alive", "0"]
Add Comment
Please, Sign In to add comment