Sign inSign up

rackitio/pythont

By rackitio

•Updated 5 days ago

Free-threaded (no-GIL) CPython on Debian trixie-slim, stable and weekly-patched

Image
Operating systems
0

771

rackitio/pythont repository overview

⁠pythont: free-threaded CPython

Free-threaded (--disable-gil, PEP 703) CPython built from source on debian:trixie-slim, for linux/amd64 and linux/arm64. It follows the official python image recipe with --disable-gil added. No official Python image ships a free-threaded build.

Source, build recipe and release notes: github.com/rackitio/pythont⁠

⁠Tags

One Python version is built at a time, the newest stable release:

  • stable is built once per Python release and then never changes.
  • weekly is rebuilt every Monday from the same Python version to pick up Debian security fixes.
TagUpdated whenMoves to a new minor version?
stable, latesta new Python releaseyes
3.15a new 3.15.x release; frozen once 3.16 shipsno
3.15.0never (built once)no
weeklyevery Monday, and on each stable releaseyes
3.15.0-weeklyevery Monday until the next Python release, then frozenno

For production, pin a minor version such as 3.15 (or 3.15.Z-weekly for weekly Debian fixes). latest, stable and weekly jump to each new minor version, and C extensions built for one minor won't load on the next. Older minor versions are frozen: when 3.16 ships here, 3.15 stops getting updates, so move up yourself.

⁠Usage

FROM rackitio/pythont:3.15
docker run --rm rackitio/pythont:3.15 \
  python3 -c "import sys; print(sys.version, 'GIL enabled:', sys._is_gil_enabled())"

PYTHON_GIL is not set. CPython's default applies: the GIL turns back on if an imported C extension hasn't declared it's safe to run without it.

⁠What changed in each build

Every build has a GitHub release⁠ listing the Python version change, every Debian package that changed, and a Trivy before/after vulnerability scan. Image digests for pinning are in the release notes.

Tag summary

Content type

Image

Digest

sha256:aac3fe320…

Size

44.1 MB

Last updated

14 days ago

docker pull rackitio/pythont