LordXido commited on
Commit
6a61d7c
·
verified ·
1 Parent(s): 038078a

Create DOCKERFILE

Browse files
Files changed (1) hide show
  1. DOCKERFILE +13 -0
DOCKERFILE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.74 AS builder
2
+ WORKDIR /app
3
+ COPY . .
4
+ RUN cargo build --release
5
+
6
+ FROM python:3.10-slim
7
+ WORKDIR /app
8
+ COPY --from=builder /app/target/release/bcn-vm /app/bcn-vm
9
+ COPY api /app/api
10
+ COPY web /app/web
11
+ RUN pip install fastapi uvicorn
12
+
13
+ CMD ["uvicorn", "api.server:app", "--host", "0.0.0.0", "--port", "7860"]