mirror of
https://github.com/aljazceru/ollama-free-model-proxy.git
synced 2025-12-17 21:24:18 +01:00
19 lines
442 B
Docker
19 lines
442 B
Docker
FROM golang:latest AS builder
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 go build -o ollama-proxy
|
|
|
|
|
|
FROM scratch
|
|
LABEL author="Mark Nefedov"
|
|
LABEL org.opencontainers.image.source="https://github.com/marknefedov/ollama-openrouter-proxy"
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /app/ollama-proxy /ollama-proxy
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/ollama-proxy"] |