Files
ollama-free-model-proxy/Dockerfile
2024-12-25 01:24:01 +03:00

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"]