瀏覽代碼

update doc

kerryzhang 5 年之前
父節點
當前提交
404cae323a
共有 1 個文件被更改,包括 10 次插入0 次删除
  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