Skip to content

Commit

Permalink
Merge pull request basecamp#48 from anderssvendal/local-single-arch
Browse files Browse the repository at this point in the history
Documentation section about using local builder for single-arch
  • Loading branch information
djmb authored Apr 1, 2024
2 parents 3fe7b50 + 8a6c170 commit a341766
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,16 @@ builder:
host: ssh://[email protected]
```

## Using local builder for single-arch

If you're developing on multiple architectures, always deploy on a specific architecture(e.g. AMD64), and want to build locally, you can configure a remote builder without a host. Kamal will build the image using a local buildx instance.

```yaml
builder:
remote:
arch: amd64
```

## Using native builder when multi-arch isn't needed

If you're developing on the same architecture as the one you're deploying on, you can speed up the build by forgoing both multi-arch and remote building:
Expand Down

0 comments on commit a341766

Please sign in to comment.