sfneal / python-flask

Base Docker image for building Flask apps with Python3.7 and nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sfneal/python-flask

Build Status Total Downloads Latest Version

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.

Installation

Docker images can be pulled using the Docker CLI.

docker pull stephenneal/python-flask:3.9-buster

Usage

# 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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Base Docker image for building Flask apps with Python3.7 and nginx

License:MIT License


Languages

Language:Dockerfile 86.3%Language:Shell 13.7%