koxudaxi/python

Sponsored OSS

By koxudaxi

Updated 4 months ago

Dockerfiles for CPython of lysnikolaou's tag-strings-rebased branch.

Image
Data Science
Languages & Frameworks
Monitoring & Observability

4.0K

tagstr-docker

This directory contains Dockerfiles for CPython of lysnikolaou's tstrings branch.

The dockerfile were generated with a patched version of the official dockerfile code generator. The patched code generator and Dockerfiles exist in Koudai's(@koxudaxi) repository is fork on the official Python Dockerfile repository.

All images are available on Docker Hub. These images are built and published on GitHub Actions (and Old GitHub Actions)

How to pull from Docker Hub

$ docker pull koxudaxi/python:3.14.0a1-alpine3.20

How to run

$ docker run -it --rm koxudaxi/python:3.14.0a1-alpine3.20
Python 3.14.0a1+ (heads/tstrings:499d70c, Oct 21 2024, 19:13:41) [GCC 13.2.1 20240309] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from templatelib import Template, Interpolation
>>> name = "World"
>>> template = t"Hello {name}"
>>> assert isinstance(template.args[0], str)
>>> assert isinstance(template.args[1], Interpolation)
>>> assert template.args[0] == "Hello "
>>> assert template.args[1].value == "World"

How to build from Dockerfile

$ make build # default base image is alpine3.20
$ make build BASE_IMAGE=slim-bookworm # base image is debian:bookworm-slim
$ make build-all # build all base images

Base images

  • alpine3.20
  • alpine3.19
  • bookworm
  • bullseye
  • slim-bookworm
  • slim-bullseye

All tags for each base image

  • alpine3.20
    • 3.14.0a1-alpine3.20
    • 3.14.0a1-tstrings-alpine3.20
    • 3.14.0a1-tstrings-b07c419-alpine3.20
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-alpine3.20
  • alpine3.19
    • 3.14.0a1-alpine3.19
    • 3.14.0a1-tstrings-alpine3.19
    • 3.14.0a1-tstrings-b07c419-alpine3.19
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-alpine3.19
  • bookworm
    • 3.14.0a1-bookworm
    • 3.14.0a1-tstrings-bookworm
    • 3.14.0a1-tstrings-b07c419-bookworm
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-bookworm
  • bullseye
    • 3.14.0a1-bullseye
    • 3.14.0a1-tstrings-bullseye
    • 3.14.0a1-tstrings-b07c419-bullseye
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-bullseye
  • slim-bookworm
    • 3.14.0a1-slim-bookworm
    • 3.14.0a1-tstrings-slim-bookworm
    • 3.14.0a1-tstrings-b07c419-slim-bookworm
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-slim-bookworm
  • slim-bullseye
    • 3.14.0a1-slim-bullseye
    • 3.14.0a1-tstrings-slim-bullseye
    • 3.14.0a1-tstrings-b07c419-slim-bullseye
    • 3.14.0a1-tstrings-b07c4191720e318e25fcba2be93d6b7b0aedc668-slim-bullseye

Docker Pull Command

docker pull koxudaxi/python