Sign inSign up

giacomofurlan/python-precompiled

By giacomofurlan

Updated almost 5 years ago

Ready-to-copy linux-based python 3.6+ images.

Image
0

4.0K

giacomofurlan/python-precompiled repository overview

Home page of automated build: https://github.com/elegos/python-precompiled

Dockerfile list: link

Description

This image should not be used alone. The main purpose is to compile a Python version, in order to be copied into another environment.

Example of usage might be to create AppImages that depend on Python

Entrypoint

The default entrypoint will copy the compiled Python binaries in the specified directory.

Example usages

Extract the Python binaries in a local folder

docker run --rm --user "$(id -u):$(id -g)" --volume "$(pwd)/python":/opt/out giacomofurlan/python-precompiled:v{version} /opt/out

Use as base for another docker image

FROM giacomofurlan/python-precompiled:v3.9.4

...
# Pre-compiled binaries will be in /opt/python/{MAJOR}.{MINOR}.{PATCH}/,
# symlinked to /opt/python/{MAJOR}.{MINOR}/ and /opt/python/{MAJOR}/
RUN cp -r /opt/python/3.9.4/* /usr/

ENTRYPOINT [ "whatever" ]

Tag summary

Content type

Image

Digest

Size

328.3 MB

Last updated

almost 5 years ago

docker pull giacomofurlan/python-precompiled:v3.9