feat: docker build with platform

This commit is contained in:
wencaiwulue
2022-12-11 10:11:43 +08:00
parent 8356ff68d2
commit 8a0290bbd2

View File

@@ -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}