...
|
...
|
@@ -9,8 +9,8 @@ COPY ./main.go main.go |
|
|
# RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
|
|
|
ENV GO111MODULE on
|
|
|
ENV GOPROXY https://goproxy.cn,direct
|
|
|
RUN ["go","mod","tidy"]
|
|
|
RUN ["go","build"]
|
|
|
RUN go mod tidy
|
|
|
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o godevp .
|
|
|
|
|
|
FROM alpine:latest
|
|
|
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
|
...
|
...
|
|