lucky-tgbot/Dockerfile
sunyz 788a35553f
Some checks failed
Build and Push Docker Images / docker (push) Failing after 34s
[+] update dockerfile
Signed-off-by: sunyz <i@sunyz.net>
2025-01-22 19:14:29 +08:00

15 lines
313 B
Docker

FROM golang:1.23.5-bookworm AS builder
ARG VERSION=prod
WORKDIR /app
COPY . .
RUN go mod tidy
RUN go build -o lucky
FROM debian:bookworm
WORKDIR /app
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/lucky .
COPY --from=builder /app/plugin ./plugin
CMD ["./lucky"]