Skip to content
BG
hardened-python
hardened-pythonHardened IconHardened Containers images with Python.Updated 3 hours ago
Quick Pull$ docker pull ghcr.io/bell-sw/hardened-python:latest

Overview

About

The repository contains hardened images with Python and accompanying tools (such as pip3, wheel, setuptools).

Getting Started

The next code example demonstrates a Dockerfile that runs a Python application in a distroless image:

FROM bellsoft/hardened-python:distroless-glibc

COPY <<'EOF' hello_bellsoft.py
if __name__ == "__main__":
    print("Hello BellSoft")
EOF

CMD [ "hello_bellsoft.py" ]

Hardened Containers images with Python

Hardened Containers images with Python and basic Python utilities (pip, setuptools, wheel).

Tags

  • X.Y-glibc - specified version of Python with Glibc
  • X.Y-musl - specified version of Python with Musl
  • glibc - latest Python version with Glibc
  • musl, latest - latest Python version with Musl

License

As with all Docker images, these also contain other software, which may be distributed under other licenses.

The list of installed software components and their licenses can be retrieved by executing the grep -E '^[PVL]:' /var/lib/apk/db/installed command.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.