Skip to main content
Reactor builds your image remotely when you deploy. You need no local Docker installation or separate build step. Images belong to a project. Building, pushing, or tagging an image does not change a running environment.

Before you build

Your account needs Serve access and permission to push to the project. If remote builds are unavailable, contact Reactor.

Build and deploy

From the folder containing reactor.yaml, deploy with hardware your model supports:
Terminal
Deploy builds remotely by default and waits for rollout. Choose hardware within your account allocation. Build output appears in this terminal. After deployment starts, use reactor status production and reactor logs production --follow.

Define the image

The CLI uses the workspace Dockerfile when one is present. Otherwise, it generates one from build: in reactor.yaml:
reactor.yaml (selected settings)
Keep the runtime pin from your scaffold. Add CUDA and other dependencies through the build settings. Use .dockerignore to exclude local environments, credentials, and checkpoints. Push and deploy weights separately so code changes can reuse them.

Build without deploying

To save an image without changing an environment, choose a new tag for each build:
Terminal
reactor image build is the same command as reactor build. Reuse it without rebuilding:
Terminal
Choose a GPU that your model supports. On an existing environment, omit --gpu to keep its hardware. Add --weights to select a weight set in the same deployment.

Tag stored artifacts

Use the digest from a build or push to name an existing image:
Terminal
Tags name artifacts. Deployments pin their digests. Version tags cannot be deleted, and a tag attached to a deployed release cannot move. See the image tag reference for moving or deleting labels. For weight tags, see Tag a stored weight set.

Build secrets

Supply credentials through build secrets. Keep credentials out of build arguments and the image.

Resolve a remote build refusal

A remote build can fail before any build step runs. Read the failure reason in the deploy or build terminal. If it names a Dockerfile line and instruction, fix that instruction before retrying. If build: in reactor.yaml defines all the dependencies your image needs, generate the Dockerfile from those settings instead:
Terminal
This ignores the workspace Dockerfile and stores the image without deploying it. Then deploy the stored image without rebuilding. The --no-dockerfile flag belongs to reactor build, not reactor deploy.

Build locally

For local Docker builds, use reactor build. Add --push --tag NEW_TAG to store the result on the project. To push an image already in your local Docker daemon, use reactor image push my-model:local --tag NEW_TAG. Replace NEW_TAG with a new image tag. Standalone builds require --remote to run on Reactor. See the build reference for other options.