Sign inSign up

jdubz/python-builder

By jdubz

•Updated over 2 years ago

Basic image with tooling installed required to build various versions of Python.

Image
0

1.9K

jdubz/python-builder repository overview

⁠Docker Image: Python Builder

Gitlab pipeline status (self-hosted) Docker pulls Liberapay patrons Liberapay receiving

Basic image with tooling installed required to build various versions of Python.

⁠Usage

This image is intended to be used as the first stage of a multi-stage build. For example:

FROM jdubz/python-builder:1.2-alpine as build

ARG PYTHON_VERSIONS="3.10 3.11 3.12"

RUN build-python-versions -o /tmp/ $PYTHON_VERSIONS

FROM alpine:3.19

ENV PATH /usr/local/bin:$PATH

COPY --from=build /tmp/python-all.tar.gz /tmp/python.tar.gz

RUN tar -C / -xzf /tmp/python-all.tar.gz && \
	rm /tmp/python.tar.gz

Once the image is built, Pythons will be installed in /usr/local/bin. The binaries are installed as pythonX.Y.

⁠License

MIT

⁠Author

Tag summary

Content type

Image

Digest

sha256:dee3e3956…

Size

97.6 MB

Last updated

over 2 years ago

docker pull jdubz/python-builder