Skip to content

Build a Flower Server Image

Call function.run(action="build", ...) to build the Flower server image.

Parameters

Name Type Required Description
action str ✓ Action to execute. Must be build.
volumes list[dict] List of volumes for the build.
resources dict Resource limits and requests for the build.
envs list[dict] Environment variables.
secrets list[str] List of secret names.
profile str Profile template.
instructions list[str] Custom instructions to execute during the container build.
auth_public_keys list[str] Public keys for authentication.
insecure bool Disable TLS verification.

Example

run = function.run(
    action="build",
    instructions=["pip install -r requirements.txt"],
)