FROM golang:1.22-alpine AS builder WORKDIR /app COPY go.mod . COPY main.go . RUN go build -o chu-statistics . FROM alpine:latest RUN apk --no-cache add ca-certificates tzdata RUN mkdir -p /data WORKDIR /app COPY --from=builder /app/chu-statistics /usr/local/bin/chu-statistics ENTRYPOINT ["chu-statistics"]