FROM golang:1.26-bookworm AS build WORKDIR /src COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -o /out/foreman ./cmd/foreman FROM gcr.io/distroless/static-debian12 LABEL org.opencontainers.image.source="https://gitea.stevedudenhoeffer.com/steve/foreman" LABEL org.opencontainers.image.description="Queued Ollama proxy daemon" COPY --from=build /out/foreman /foreman EXPOSE 8080 ENTRYPOINT ["/foreman", "serve"]