Skip to content

Instantly share code, notes, and snippets.

@fabiom91
Created October 7, 2021 13:43
Show Gist options
  • Save fabiom91/cdf8426815a57d475d038b2a8d432250 to your computer and use it in GitHub Desktop.
Save fabiom91/cdf8426815a57d475d038b2a8d432250 to your computer and use it in GitHub Desktop.
Dockerfile Gunicorn flask
# Get image from docker hub
FROM tiangolo/meinheld-gunicorn-flask:python3.9
# If you need to install any apt package you can do it here e.g:
# RUN apt-get update && apt-get install -y pandoc
# Copy the requirements file into the container.
# The requirements file is a list of all pip packages we need.
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY ./app /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment