Skip to content

Commit

Permalink
small changes to explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegalbraith committed Oct 11, 2023
1 parent 7c6c397 commit 80c936b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions content/cli/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,7 @@ This command accepts all the command line flags as Docker's `docker buildx bake`

### `depot build`

Runs a Docker build using Depot's remote builder infrastructure. This command accepts all the command line flags as Docker's `docker buildx build` command, you can run `depot build --help` for the full list.

The `build` command needs to know which [project](/docs/core-concepts#projects) id to route the build to. For passing the project id you have three options available to you:

1. Run [`depot init`](/docs/cli/reference#depot-init) at the root of your repository and commit the resulting `depot.json` file
2. Use the `--project` flag in your `depot build` command
3. Set the `DEPOT_PROJECT_ID` environment variable which will be automatically detected
Runs a Docker build using Depot's remote builder infrastructure.

By default, `depot build` will leave the built image in the remote builder cache. If you would like to download the image to your local Docker daemon (for instance, to `docker run` the result), you can use the `--load` flag.

Expand Down Expand Up @@ -128,6 +122,8 @@ depot build -t repo/image:tag . --push

#### Flags for `build`

This command accepts all the command line flags as Docker's `docker buildx build` command.

{/* <!-- prettier-ignore-start --> */}
| Name | Description |
| ---- | ----------- |
Expand Down

0 comments on commit 80c936b

Please sign in to comment.