Basic image with tooling installed required to build various versions of Python.
1.9K
Basic image with tooling installed required to build various versions of Python.
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.
MIT
Content type
Image
Digest
sha256:dee3e3956…
Size
97.6 MB
Last updated
over 2 years ago
docker pull jdubz/python-builder