Skip to content

Commit

Permalink
Support linux platform for docker no matter what platform the host is (
Browse files Browse the repository at this point in the history
  • Loading branch information
xxx7xxxx committed Aug 29, 2022
1 parent e8da8b0 commit 9d91ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ build_docker:
-v ${GO_PATH}:/gopath -v ${MKFILE_DIR}:/egsrc -v ${MKFILE_DIR}build/cache:/gocache \
-e GOPROXY=https://goproxy.io,direct -e GOCACHE=/gocache -e GOPATH=/gopath \
megaease/golang:1.19-alpine make build DOCKER=true
docker build -t ${IMAGE_NAME}:${RELEASE} -f ./build/package/Dockerfile .
docker buildx build --platform linux/amd64 --load -t ${IMAGE_NAME}:${RELEASE} -f ./build/package/Dockerfile .
docker tag ${IMAGE_NAME}:${RELEASE} ${IMAGE_NAME}:latest
docker tag ${IMAGE_NAME}:latest ${IMAGE_NAME}:server-sidecar
docker tag ${IMAGE_NAME}:latest ${IMAGE_NAME}:easemesh
Expand Down

0 comments on commit 9d91ef9

Please sign in to comment.