Sign inSign up

ossobv/uwsgi-python

By ossobv

Updated about 18 hours ago

Docker image which gives uwsgi + uwsgi-plugin-python, based on ossobv/python:2

Image
2

50K+

ossobv/uwsgi-python repository overview

Example usage
FROM ossobv/uwsgi-python

COPY requirements.txt .
RUN buildDeps=' \
# Add some build dependencies here which we can remove later
        ' \
    && apt-get update \
    && apt-get install -y \
        $buildDeps \
        --no-install-recommends \
    && rm -rf /var/lib/apt/lists/* \
    && pip install --no-cache-dir -r requirements.txt \
    && apt-get purge --auto-remove $buildDeps

COPY example_project /code
WORKDIR /code

EXPOSE 8080

NOTE

The default CMD expects a uwsgi.ini in the workkdir. Below is an example of one:

[uwsgi]
master = true
chdir = /code
http-socket = :8080
memory-report = true
die-on-term = true
plugin = python
workers = 4
module = example_project.wsgi
static-map = /static=/code/static

Tag summary

Content type

Image

Digest

sha256:67d394295

Size

71.2 MB

Last updated

about 18 hours ago

docker pull ossobv/uwsgi-python