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"]