mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
feat: docker build with platform
This commit is contained in:
2
Makefile
2
Makefile
@@ -92,7 +92,7 @@ container:
|
||||
.PHONY: container-local
|
||||
container-local: kubevpn-linux-amd64
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/envoy-xds-server ./cmd/mesh
|
||||
docker build -t ${IMAGE} -f $(BUILD_DIR)/local.Dockerfile .
|
||||
docker build --platform linux/amd64 -t ${IMAGE} -f $(BUILD_DIR)/local.Dockerfile .
|
||||
docker push ${IMAGE}
|
||||
docker tag ${IMAGE} ${IMAGE_DEFAULT}
|
||||
docker push ${IMAGE_DEFAULT}
|
||||
|
||||
Reference in New Issue
Block a user