Spaces:
Running
Running
| FROM rust:1.83 as builder | |
| WORKDIR /app | |
| COPY Cargo.toml Cargo.lock* ./ | |
| COPY src ./src | |
| RUN cargo build --release | |
| FROM debian:bookworm-slim | |
| RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* | |
| COPY --from=builder /app/target/release/anthropic-proxy /usr/local/bin/ | |
| ENV BIND_ADDR=0.0.0.0:7860 | |
| EXPOSE 7860 | |
| CMD ["anthropic-proxy"] | |