The proxy now listens on the standard service ports (Ollama :11434, ComfyUI :8188) and the actual services move one port up (:11435, :8189). Metric prefix is now gpu_turnstile_.
14 lines
367 B
Docker
14 lines
367 B
Docker
FROM golang:1.23 AS build
|
|
WORKDIR /src
|
|
COPY go.mod ./
|
|
COPY cmd ./cmd
|
|
COPY internal ./internal
|
|
ARG VERSION=dev
|
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -o /gpu-turnstile ./cmd/gpu-turnstile
|
|
|
|
FROM gcr.io/distroless/static:nonroot
|
|
COPY --from=build /gpu-turnstile /gpu-turnstile
|
|
EXPOSE 8188 11434
|
|
USER nonroot
|
|
ENTRYPOINT ["/gpu-turnstile"]
|