Docker image for running uWSGI and NGINX in single container.
This is base Docker image for creating Python web applications.
Image is configured to run uWSGI and NGINX in a single container.
Simply use as base for your image using FROM clerbo/python-uwsgi-nginx
in your Dockerfile
.
Copy your application to /app
and optionally provide customized NGINX or uWSGI configuration.
FROM clerbo/python-uwsgi-nginx:python3.5
# Uncomment if you want to provide customized NGINX config
# COPY conf/nginx.conf /etc/nginx/conf.d/
# Uncomment if you want to use custom uWSGI config
# COPY conf/uwsgi.ini /app/
# Copy and install Python app
# app.py in root is required with default uwsgi.ini
COPY . /app
RUN pip install -r requirements.txt \
&& pip install -r requirements.txt
This project is licensed under the Apache license