Spaces:
Sleeping
Sleeping
| FROM rust:1.74 AS builder | |
| WORKDIR /app | |
| COPY . . | |
| RUN cargo build --release | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY --from=builder /app/target/release/bcn-vm /app/bcn-vm | |
| COPY api /app/api | |
| COPY web /app/web | |
| RUN pip install fastapi uvicorn | |
| CMD ["uvicorn", "api.server:app", "--host", "0.0.0.0", "--port", "7860"] |