Smaller image
This commit is contained in:
parent
619a99a6dd
commit
877ef47dc9
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user