Python 2.7 based image with gunicorn and dynamic configuration setup from environment variables.
1.0K
Add your dependencies, inject a WSGI app file, expose a port, that's it.
FROM zilman/gunicorn
RUN pip install meinheld falcon
COPY app.py /
EXPOSE 8000
GUNICORN prefixed environment variables are forwarded as configuration options.CMD is the pairing of the WSGI app name and path to the file.See here for gunicorn configuration options.
docker run -d -e GUNICORN_BIND=0.0.0.0:8000 -e GUNICORN_ACCESSLOG=- -p 8000:8000 <yourcontainer>
Content type
Image
Digest
Size
253.9 MB
Last updated
about 10 years ago
docker pull zilman/gunicorn