优化构建命令
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user