Skip to content

Commit 5a2be6a

Browse files
author
zggong
committed
fix apple m1 & docker build bugs
1 parent 54b3cf0 commit 5a2be6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ COPY . .
1313
#RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
1414
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct
1515

16-
RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
17-
RUN go mod download
16+
#RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
17+
RUN go mod tidy
1818
# go构建可执行文件
1919
#RUN go build .
2020

0 commit comments

Comments
 (0)