dullage / gunicorn

A Gunicorn Docker base image with Python.

Home Page:https://hub.docker.com/r/dullage/gunicorn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gunicorn

A Gunicorn Docker base image with Python.

Tags

  • 20.0-python3.8-alpine3.12, latest
  • 20.0-python3.8

Example Usage

Use this image as a base:

FROM dullage/gunicorn:20.0-python3.8-alpine3.12

COPY /path/to/your/app /app

RUN pip install --no-cache-dir -r /app/requirements.txt
docker build -t my-app .

docker run -p 80:8080 my-app

Entrypoint / Default Command

The entrypoint is gunicorn and the default command is -b 0.0.0.0:8080 -w 3 main:app < Bind to all interfaces on port 8080 (inside the container), load a module called 'mail' with a variable called 'app'.

The default command can be overridden as required. Example:

docker run -p 80:8080 my-app -b 0.0.0.0:8080 -w 1 myapp:app

About

A Gunicorn Docker base image with Python.

https://hub.docker.com/r/dullage/gunicorn


Languages

Language:Python 90.4%Language:Dockerfile 9.6%