This commit is contained in:
yedf2 2021-08-25 16:09:01 +08:00
parent 3f3ca32cb1
commit b5e0149dd4

View File

@ -1,7 +1,7 @@
FROM golang:1.16.6-alpine3.14 as builder
WORKDIR /app/dtm
RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
# RUN go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
EXPOSE 8080
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build app/main.go