Image Overview: python

Overview: python Chainguard Image

Minimal Python image based on Wolfi.

Download this Image

The image is available on

docker pull


We have two images available: a python:latest-dev variant that contains pip and a shell, and a minimal runtime image that just contains python itself.

These images are available on

docker pull
docker pull

Note that in order to access the shell in the python:latest-dev image, you’ll need to include an --entrypoint option, as in the following example.

docker run -it --entrypoint /bin/bash chainguard/python:latest-dev


The python image can be used directly for simple cases, or with a multi-stage build using python-dev as the build container.

FROM as builder


COPY requirements.txt .

RUN pip install -r requirements.txt --user



# Make sure you update Python version in path
COPY --from=builder /home/nonroot/.local/lib/python3.12/site-packages /home/nonroot/.local/lib/python3.12/site-packages


ENTRYPOINT [ "python", "/app/" ]

Last updated: 2024-04-11 12:38