File size: 310 Bytes
6a61d7c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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"]