reactor image build [flags]
Options
| Flag | Description |
|---|---|
--build-env <name>[=<value>] | Override a build.build_env value for this build (repeatable; a bare <name> takes its value from the environment) |
--build-secret <id>[=@<path>] | Build secret for remote and local builds (repeatable): <id> prompts with no echo, <id>=@- reads stdin, <id>=@<path> reads a file, and id=<id>,env=<var> or id=<id>,src=<path> uses Docker form; @- and @<path> drop one trailing line ending |
-f, --dockerfile <path> | Path to an explicit Dockerfile (relative to the workspace); defaults to the workspace ./Dockerfile when one exists |
--local | Build the image with the local docker daemon (the default) |
--no-cache | Pass --no-cache to docker build (rebuild every layer); local builds only |
--no-dockerfile | Build from reactor.yaml, ignoring an on-disk Dockerfile |
--platform <os>/<arch> | Target build platform (default linux/amd64). Overrides build.platform in reactor.yaml; an explicit ‘FROM --platform=’ in the Dockerfile still wins for that stage. |
-p, --project <org>/<name>|<uuid> | Project: <org>/<name> or a project UUID (default: REACTOR_PROJECT, else the nearest reactor.yaml) |
--push | Also push the image to the project on Reactor: the project in reactor.yaml, or the one -p names (--remote always does) |
--remote | Build the image on the Reactor platform (linux/amd64 only) |
--tag <tag> | Also put this tag on the image |
Global options
| Flag | Description |
|---|---|
--server <url> | Reactor API server URL (default “https://api.reactor.inc”) |
-v, --verbose | Enable verbose output |
See also
- reactor image - Build, push and tag images