omaryasserhassan commited on
Commit
e3af086
·
verified ·
1 Parent(s): 09102da

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # System deps for some wheels/builds
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential cmake git && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ WORKDIR /app
9
+
10
+ # Python deps
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # App code
15
+ COPY app.py .
16
+
17
+ EXPOSE 7860
18
+
19
+ # Run FastAPI
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]