# Start from the official Golang image for building FROM golang:1.23.11-alpine AS builder WORKDIR /app COPY . . RUN go mod download RUN go build -o app . # Use a minimal image for running FROM alpine:latest WORKDIR /app COPY --from=builder /app/app . COPY data ./data EXPOSE 8080 ENV RATE_LIMIT_RPS=2 ENV RATE_LIMIT_BURST=5 CMD ["./app"]