Skip to content

Instantly share code, notes, and snippets.

@Ryan-Gordon
Created April 23, 2018 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryan-Gordon/735cb7341882a22abe96ad7d304ab10d to your computer and use it in GitHub Desktop.
Save Ryan-Gordon/735cb7341882a22abe96ad7d304ab10d to your computer and use it in GitHub Desktop.
Flask Dockerfile running using Gunicorn web server
FROM python:3.6
RUN mkdir /code
WORKDIR /code
ADD . /code/
RUN pip install -r requirements.txt
EXPOSE 2025
CMD ["gunicorn", "-c", "gunicorn.conf", "wsgi:application","-b", "0.0.0.0:2025"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment