Sign inSign up

bitnamisecure/python-min

By bitnamisecure

Updated 2 days ago

Image
Artifact
0

7.1K

bitnamisecure/python-min repository overview

Bitnami Secure Image for Python minimal

Python is a programming language that lets you work quickly and integrate systems more effectively. This ultra-lightweight option is ideal for security-focused and resource-constrained environments.

Overview of Python minimal Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Refer to our documentation to get started with the minimal container.

TL;DR

docker run --name python-min REGISTRY_NAME/bitnami/python-min:latest

Note: You need to substitute the REGISTRY_NAME placeholder with a reference to your container registry.

Using docker-compose.yml

The docker-compose.yaml file of this container can be found in the Bitnami Containers repository.

https://github.com/bitnami/containers/tree/main/bitnami/python/docker-compose.yml

Choosing between the Standard and Minimal image

This asset is available in two flavors: Standard and Minimal; designed to address different use cases and operational needs.

Standard images

The standard images are full-featured, production-ready containers built on top of secure base operating systems. They include:

  • The complete runtime and commonly used system tools.
  • A familiar Linux environment (shell, package manager, debugging utilities).
  • Full compatibility with most CI/CD pipelines and existing workloads.

Recommended for:

  • Development and testing environments.
  • Workloads requiring package installation or debugging tools.
  • Applications that depend on system utilities or shared libraries.
Minimal images

The minimal images are optimized, distroless-style containers derived from a stripped-down base. They only ship what’s strictly necessary to run the application; no shell, package manager, or extra libraries. They provide:

  • Smaller size: Faster pull and startup times.
  • Reduced attack surface: Fewer components and potential vulnerabilities.
  • Simpler maintenance: Fewer dependencies to patch or update.

Recommended for:

  • Production environments prioritizing performance and security.
  • Regulated or security-sensitive workloads
  • Containers built via multi-stage builds (e.g., Golang static binaries).

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

Deprecation Note (2022-01-21)

The prod tags has been removed; from now on just the regular container images will be released.

Deprecation Note (2020-08-18)

The formatting convention for prod tags has been changed:

  • BRANCH-debian-10-prod is now tagged as BRANCH-prod-debian-10
  • VERSION-debian-10-rX-prod is now tagged as VERSION-prod-debian-10-rX
  • latest-prod is now deprecated

Get this image

The Bitnami Python minimal Docker image is only available to Bitnami Secure Images customers.

Entering the REPL

By default, running this image will drop you into the Python minimal REPL, where you can interactively test and try things out in Python minimal.

docker run -it --name python-min bitnami/python-min

Configuration

The following section describes how to run commands

Running your Python minimal script

The default work directory for the Python minimal image is /app. You can mount a folder from your host here that includes your Python minimal script, and run it normally using the python command.

docker run -it --name python-min -v /path/to/app:/app bitnami/python-min script.py
Running a Python minimal app with package dependencies

If your Python minimal app has a requirements.txt defining your app's dependencies, you can install the dependencies before running your app.

docker run --rm -v /path/to/app:/app bitnami/python-min -m venv venv
docker run --rm --entrypoint=/app/venv/bin/pip -v /path/to/app:/app bitnami/python-min install -r requirements.txt
docker run -it --name python-min --entrypoint=/app/venv/bin/python -v /path/to/app:/app bitnami/python-min script.py

or using Docker Compose:

python-min:
  image: REGISTRY_NAME/bitnami/python-min:latest
  command: "sh -c 'python -m venv venv && /app/venv/bin/pip install -r requirements.txt && /app/venv/bin/python script.py'"
  volumes:
    - .:/app

Further Reading:

FIPS configuration in Bitnami Secure Images

The Bitnami Python minimal Docker image from the Bitnami Secure Images catalog includes extra features and settings to configure the container with FIPS capabilities. You can configure the next environment variables:

  • OPENSSL_FIPS: whether OpenSSL runs in FIPS mode or not. yes (default), no.

License

Copyright © 2026 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Tag summary

Content type

Image

Digest

sha256:938519c66

Size

21 MB

Last updated

2 days ago

docker pull bitnamisecure/python-min