python-flask is a python-slim based image with flask-RESTful & uWSGI dependencies installed. Useful for running Python Flask application in multi container docker deployments.
Docker images can be pulled using the Docker CLI.
docker pull stephenneal/python-flask:3.9-buster
# Start from base Python 3.9 flask image
FROM stephenneal/python-flask:3.9-slim
LABEL maintainer="Stephen Neal <stephen@stephenneal.net>"
# Expose port 5000
EXPOSE 5000
# Set working directory
WORKDIR /var/www
# Copy nginx config and uWSGI runner
COPY ["wsgi.py", "app.ini", "logging.conf", "entrypoint.sh", "/var/www/"]
# Install dependencies
COPY requirements.txt /var/www/requirements.txt
RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
Please see CONTRIBUTING for details.
If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.