FROM golang:1.24-alpine AS builder WORKDIR /app COPY go.mod go.mod ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -o bot . FROM alpine:3.21 WORKDIR /app COPY --from=builder /app/bot . EXPOSE 8080 CMD ["./bot"]