Initial commit

This commit is contained in:
2025-08-01 00:15:34 +01:00
commit 54601b1993
115 changed files with 28375 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# Start from the official Golang image for building
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY . .
RUN go mod download
RUN go build -o app main.go
# 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"]