mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 23:32:02 +00:00
use BuildKit to provide TARGETARCH at image build time
This commit is contained in:
@@ -13,11 +13,12 @@ You only need to build the container image once unless you change the Dockerfile
|
||||
|
||||
```bash
|
||||
# build a container image named "zitibuilder" with the same version of Go that's declared in go.mod
|
||||
docker build \
|
||||
docker buildx build \
|
||||
--tag=zitibuilder \
|
||||
--build-arg uid=$UID \
|
||||
--build-arg gid=$GID \
|
||||
--build-arg golang_version=$(grep -Po '^go\s+\K\d+\.\d+(\.\d+)?$' go.mod) \
|
||||
--load \
|
||||
./docker-images/cross-build/
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user