TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/getployz/ployz/llms.txt
Use this file to discover all available pages before exploring further.
build command builds container images on the local machine and registers them with the cluster. Builds run on the machine where you invoke ployzctl, using either a standard Dockerfile or Railpack for automatic language detection. The resulting image is available for distribution to cluster nodes and subsequent deploys.
Build methods
Ployz supports two build methods:| Method | Description |
|---|---|
dockerfile | Standard Docker image build. The daemon uses the Dockerfile in the build context directory. |
railpack | Automatic language detection and build plan generation. No Dockerfile required — Railpack inspects the project and determines the appropriate build steps. |
Subcommands
local — build an image locally
local — build an image locally
Build a container image from a local directory and register it with the daemon. The context directory is the root of the files sent to the builder.Positional argumentsRequired flagsOptional flagsThe response includes an operation ID, the built image artifact (digest, size, platform), and an availability record if the image was registered locally.
Path to the build context directory. All files in this directory are sent to the builder. For
dockerfile builds, this directory must contain a Dockerfile.The build method to use.
dockerfile uses the Dockerfile in the context; railpack auto-detects the build plan.The name and optional tag to assign to the built image, e.g.
myapp:latest or ghcr.io/myorg/app:v1.2.3. This name is used for distribution and deploy references.Target platform in
os/arch format, e.g. linux/amd64 or linux/arm64. If omitted, the builder uses the host platform.operation list — list build operations
operation list — list build operations
List all build operations tracked by the daemon, including completed, in-progress, and failed builds.Use
--json for full structured records.operation get — get a build operation
operation get — get a build operation
Retrieve the details of a single build operation by its ID.The response includes the operation record with status, method, image name, and result artifact.
The operation ID returned when the build was started, or listed by
operation list.Build and deploy workflow
A typical local build-and-deploy cycle looks like this:Build the image
Build from the project root. Note the digest in the output or retrieve it with
--json.