Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyb3r-jak3/pypy-flask
Docker base image for deploying flask applications with pypy
https://github.com/cyb3r-jak3/pypy-flask
alpine alpine-linux docker flask pypy python
Last synced: 2 months ago
JSON representation
Docker base image for deploying flask applications with pypy
- Host: GitHub
- URL: https://github.com/cyb3r-jak3/pypy-flask
- Owner: Cyb3r-Jak3
- License: mpl-2.0
- Created: 2021-05-22T20:04:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-13T12:25:41.000Z (2 months ago)
- Last Synced: 2024-11-13T12:29:32.237Z (2 months ago)
- Topics: alpine, alpine-linux, docker, flask, pypy, python
- Language: Dockerfile
- Homepage:
- Size: 151 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyPy Flask
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.
## Tags
Images are tagged in the format: `slim-FlaskVersion-GunicornVersion-GeventVersion` i.e. `ghcr.io/cyb3r-jak3/pypy-flask:slim-2.2.2-20.1.0-22.8.0`. There is also just plain `slim|alpine` which is always the latest versions i.e. `ghcr.io/cyb3r-jak3/pypy-flask:slim`
## Using
```docker
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-tmpWORKDIR /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:
- ghcr.io/cyb3r-jak3/pypy-flask:slim
- cyb3rjak3/pypy-flask:slim
- registry.gitlab.com/cyb3r-jak3/pypy-flask:slimSlim images are build using the [official pypy image](https://hub.docker.com/_/pypy/)
### Alpine
There are also alpine-based images available. This are build using [this container](https://github.com/Cyb3r-Jak3/pypy-flask)
ghcr.io/cyb3r-jak3/pypy-flask:alpine
cyb3rjak3/pypy-flask:alpine
registry.gitlab.com/cyb3r-jak3/pypy-flask:alpine#### Updating
When there is a new version released need to change it in:
- Both Dockerfiles ([slim](slim.Dockerfile) and [alpine](alpine.Dockerfile))
- [matrix.json](matrix.json)