lucky-tgbot/Dockerfile
2025-01-22 17:26:32 +08:00

14 lines
255 B
Docker

FROM golang:1.23.5 AS builder
ARG VERSION=prod
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
RUN go build -o lucky
FROM debian:bullseye-slim
WORKDIR /app
COPY --from=builder /app/lucky .
COPY --from=builder /app/plugin ./plugin
CMD ["./lucky"]