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

15 lines
309 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 ubuntu:latest
WORKDIR /app
RUN apt install -y ca-certificates && apt upgrade -y ca-certificates
COPY --from=builder /app/lucky .
COPY --from=builder /app/plugin ./plugin
CMD ["./lucky"]