build: 修改构建命令

This commit is contained in:
Mmx233
2022-09-18 15:23:19 +08:00
parent 0f1cc7f352
commit ad36c83c72

View File

@@ -6,7 +6,7 @@ WORKDIR /build
COPY . .
RUN go build -ldflags '-extldflags "-static" -s -w' -o runner
RUN go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -ldflags '-extldflags "-static" -s -w' -o runner
FROM alpine:latest