mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 00:20:00 +08:00
chore: not using goproxy by default (#4613)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
FROM golang:1.22-alpine
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
# set timezone if you need
|
||||
# ENV TZ Asia/Shanghai
|
||||
# if you are in China, you can use the following command to speed up the download
|
||||
# ENV GOPROXY https://goproxy.cn,direct
|
||||
|
||||
WORKDIR /app
|
||||
COPY goctl /usr/bin/
|
||||
|
||||
@@ -23,7 +23,7 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
# go mod tidy
|
||||
GOPROXY=https://goproxy.cn && go mod tidy
|
||||
go mod tidy
|
||||
|
||||
# code inspection
|
||||
go test -race ./...
|
||||
|
||||
Reference in New Issue
Block a user