Build Docker images with BuildKit features via python-on-whales for advanced builds like multi-platform and secrets.
# Source: https://github.com/PrefectHQ/prefect | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works # Provided via justclaw.it.com; keep this notice with the code. """ BuildKit/buildx backend for Docker image building via python-on-whales. This module provides an alternative build backend that wraps the Docker CLI's buildx functionality through python-on-whales, enabling BuildKit features such as build secrets, SSH forwarding, multi-platform builds, and `--mount` syntax. Users opt in by setting `build_backend="buildx"` on `DockerImage` or `build_docker_image()`. The `python-on-whales` package must be installed separately — install it via `pip install python-on-whales>=0.81`. """ from __future__ import annotations import logging import time from ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key