Bundles Poetry in a convenient Docker image
Find a file
Jack Stockley f04fec3c3c
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
Merge pull request #491 from jnstockley/beta
Beta
2026-06-01 15:01:38 -05:00
.github Add ignore-unfixed: true 2026-05-03 19:55:04 -05:00
Dockerfile310 Merge pull request #481 from jnstockley/renovate/dhi.io-python-3.10.20 2026-06-01 15:01:21 -05:00
Dockerfile311 Merge pull request #483 from jnstockley/renovate/dhi.io-python-3.11.15 2026-06-01 15:00:57 -05:00
Dockerfile312 Merge pull request #485 from jnstockley/renovate/dhi.io-python-3.12.13 2026-06-01 15:00:32 -05:00
Dockerfile313 Merge pull request #487 from jnstockley/renovate/dhi.io-python-3.13.13 2026-06-01 14:59:53 -05:00
Dockerfile314 Merge pull request #489 from jnstockley/renovate/dhi.io-python-3.14.5 2026-06-01 14:59:10 -05:00
LICENSE Create LICENSE 2024-12-13 21:20:15 -06:00
README.md Update README 2025-12-21 21:49:22 -06:00
requirements.txt Update dependency poetry to v2.4.1 2026-05-09 16:06:44 +00:00

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
  • latest is not recommend for Dockerfiles as it can change and break your build.
  • latest will be pinned to latest poetry version AND latest python version.
  • latest should 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