FROM golang:1.25-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o bot . FROM alpine:latest RUN apk --no-cache add ca-certificates RUN mkdir /data WORKDIR /root/ COPY --from=builder /app/bot . COPY --from=builder /app/templates ./templates COPY --from=builder /app/static ./static COPY .env . ENV DB_PATH=/data/bot.db CMD ["./bot"]