Smaller image

This commit is contained in:
斟酌 鵬兄 2022-09-14 23:40:51 +08:00
parent 619a99a6dd
commit 877ef47dc9

View File

@ -1,4 +1,4 @@
FROM golang:1.19-alpine
FROM golang:1.19-alpine AS build
WORKDIR /app
@ -12,4 +12,10 @@ COPY *.go ./
RUN go build -o /golifehkbot
FROM scratch
COPY --chown=0:0 --from=build /golifehkbot /
WORKDIR /tmp
CMD [ "/golifehkbot" ]