Files
dd0c/products/01-llm-cost-router/Dockerfile
Max Mayfield 00db59ff83
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 7m12s
Fix Dockerfile: bump Rust 1.79 -> 1.85 (edition2024 support)
2026-03-01 17:44:41 +00:00

17 lines
650 B
Docker

# P1: dd0c/route — Rust multi-binary (proxy, api, worker)
FROM rust:1.85-slim AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock* ./
COPY src/ src/
COPY benches/ benches/
RUN cargo build --release
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/dd0c-proxy /usr/local/bin/
COPY --from=builder /app/target/release/dd0c-api /usr/local/bin/
COPY --from=builder /app/target/release/dd0c-worker /usr/local/bin/
EXPOSE 8080 3000
CMD ["dd0c-api"]