Simple pre-built docker container based on pypy and has flask, gevent and gunicorn installed.
50K+
Docker base image for deploying Python applications on pypy with flask, gunicorn and gevent. Saves on container build time by wrapping it all into one repo. This image is available from DockerHub, GitHub, and Gitlab.
Images are tagged in the format: slim|alpine-FlaskVersion-GunicornVersion-GeventVersion i.e. ghcr.io/cyb3r-jak3/pypy-flask:alpine-2.0.1-20.1.0-21.8.0. There is also just plain slim|alpine which is always the latest versions, i.e. ghcr.io/cyb3r-jak3/pypy-flask:slim
FROM cyb3rjak3/pypy-flask:slim
# If there are other requirements for the application
COPY requirements.txt /tmp/pip-tmp/
RUN pip --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
&& rm -rf /tmp/pip-tmp
WORKDIR /usr/app
COPY src/ ./
ENTRYPOINT [ "gunicorn", "-k", "gthread","--preload", "--bind", "0.0.0.0", "--workers", "8", "app:app" ]
You can replace the FROM image with any of the following:
Slim images are build using the official pypy image
There are also alpine-based images available. These are build using this container
The latest version of Flask that the alpine version supports is 2.0.3. If you need a Flask version higher than that then you must switch to slim tags.
Content type
Image
Digest
sha256:c17d57c45…
Size
169.1 MB
Last updated
about 1 year ago
docker pull cyb3rjak3/pypy-flask:slim-3.0.1-21.1.0-25.4.1