优化构建命令

This commit is contained in:
NewName
2025-05-18 11:07:56 +08:00
parent 37651a6977
commit 75efbac1a8

View File

@@ -5,7 +5,7 @@ COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ghproxy .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o ghproxy .
FROM alpine