build
This commit is contained in:
+3
-1
@@ -1,7 +1,9 @@
|
||||
FROM golang:1.26-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
ENV GOTOOLCHAIN=auto
|
||||
ENV GOTOOLCHAIN=auto \
|
||||
GOPROXY=https://goproxy.cn,direct \
|
||||
GOSUMDB=sum.golang.google.cn
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user