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.
docker run --name python-min REGISTRY_NAME/bitnami/python-min:latest
Note: You need to substitute the
REGISTRY_NAMEplaceholder with a reference to your container registry.
docker-compose.ymlThe 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
This asset is available in two flavors: Standard and Minimal; designed to address different use cases and operational needs.
The standard images are full-featured, production-ready containers built on top of secure base operating systems. They include:
Recommended for:
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:
Recommended for:
Dockerfile linksLearn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.
The prod tags has been removed; from now on just the regular container images will be released.
The formatting convention for prod tags has been changed:
BRANCH-debian-10-prod is now tagged as BRANCH-prod-debian-10VERSION-debian-10-rX-prod is now tagged as VERSION-prod-debian-10-rXlatest-prod is now deprecatedThe Bitnami Python minimal Docker image is only available to Bitnami Secure Images customers.
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
The following section describes how to run commands
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
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:
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.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.
Content type
Image
Digest
sha256:938519c66…
Size
21 MB
Last updated
2 days ago
docker pull bitnamisecure/python-min