Browse Source

update doc

kerryzhang 5 years ago
parent
commit
404cae323a
1 changed files with 10 additions and 0 deletions
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -18,6 +18,16 @@ go build ./
     - amd64 : 64位
     - 386:  : 32位
     
+## Mac编译
+```shell
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./
+```    
+
+## docker
+```shell
+docker run --rm --env GOPROXY=https://goproxy.cn -v "$PWD":/root -w /root/src/project/main golang:latest go build ./ -v 
+```
+    
 ## 运行
 默认端口: 12345
 ```shell