fancy testing

This commit is contained in:
Para Dox
2025-05-01 13:33:13 +07:00
parent 4722460091
commit f171abb333
3 changed files with 462 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
FROM golang:1.21-alpine as builder
WORKDIR /app
COPY . .
# Build with optimization flags
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o benchmark-proxy main.go
FROM alpine:3.18
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /app
COPY --from=builder /app/benchmark-proxy .
EXPOSE 8080
CMD ["./benchmark-proxy"]