fancy testing
This commit is contained in:
16
benchmark-proxy/Dockerfile
Normal file
16
benchmark-proxy/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user