chore: 优化 docker 二进制文件构建

This commit is contained in:
Mmx233
2022-08-14 21:18:46 +08:00
parent 2c52fb0c4c
commit a0123f6b1e

View File

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