feat: Improve Docker build (#3682)

This commit is contained in:
Rene Leonhardt
2024-03-02 16:40:31 +01:00
committed by GitHub
parent be7f93924a
commit b53ba76a99
9 changed files with 48 additions and 21 deletions

View File

@@ -127,12 +127,12 @@ go get -u github.com/zeromicro/go-zero
# docker for amd64 architecture
docker pull kevinwan/goctl
# run goctl like
docker run --rm -it -v `pwd`:/app kevinwan/goctl goctl --help
docker run --rm -it -v `pwd`:/app kevinwan/goctl --help
# docker for arm64(Mac) architecture
docker pull kevinwan/goctl:latest-arm64
# run goctl like
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 goctl --help
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 --help
```
make sure goctl is executable.