mirror of
https://github.com/jnstockley/poetry.git
synced 2026-06-05 11:27:58 -05:00
Bundles Poetry in a convenient Docker image
|
Some checks failed
Python 3.10 / Push Docker image to multiple registries (push) Has been cancelled
Python 3.11 / Push Docker image to multiple registries (push) Has been cancelled
Python 3.12 / Push Docker image to multiple registries (push) Has been cancelled
Python 3.13 / Push Docker image to multiple registries (push) Has been cancelled
Python 3.14 / Push Docker image to multiple registries (push) Has been cancelled
Trivy Security Scan / Scan (push) Has been cancelled
Beta |
||
|---|---|---|
| .github | ||
| Dockerfile310 | ||
| Dockerfile311 | ||
| Dockerfile312 | ||
| Dockerfile313 | ||
| Dockerfile314 | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
Python Poetry Docker Image
This is a Docker image for Python projects that use Poetry for dependency management.
Supported Python Versions
We follow the same supported versions as Python supports or Poetry whichever is the higher version. i.e. if Python supports 3.9+ and Poetry supports 3.8+, we will support 3.9+.
Supported Architectures
- linux/amd64
- linux/arm64
Usage
Dockerfile
FROM jnstockley/python-poetry:<poetry-version>-python-<python-version>
...
RUN poetry check # Ensure poetry project follows poetry spec
latestis not recommend for Dockerfiles as it can change and break your build.latestwill be pinned to latest poetry version AND latest python version.latestshould be used to in CLIs i.e.docker exec -it jnstockley/poetry:latest <command>
Things to note
- Images are built from official Python alpine images
- Poetry is installed in
/usr/local/bin