Docker image which gives uwsgi + uwsgi-plugin-python, based on ossobv/python:2
50K+
3, 3.6, latest uwsgi-python3/Dockerfile2 uwsgi-python2/DockerfileFROM 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
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
Content type
Image
Digest
sha256:67d394295…
Size
71.2 MB
Last updated
about 18 hours ago
docker pull ossobv/uwsgi-python