mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
- Updated dev.compose.yml to define a new bench service that serves 4096 bytes of random data. - Modified configurations for Traefik, Caddy, and Nginx to route traffic to the new bench service. - Added Dockerfile and Go application for the bench server, including necessary Go modules. - Updated benchmark script to target the new bench service endpoint.
18 lines
241 B
Docker
18 lines
241 B
Docker
FROM golang:1.25.5-alpine AS builder
|
|
|
|
HEALTHCHECK NONE
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
COPY main.go ./
|
|
|
|
RUN go build -o bench_server main.go
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /src/bench_server /app/run
|
|
|
|
USER 1001:1001
|
|
|
|
CMD ["/app/run"] |