Created
October 7, 2021 13:43
-
-
Save fabiom91/cdf8426815a57d475d038b2a8d432250 to your computer and use it in GitHub Desktop.
Dockerfile Gunicorn flask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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