pluto90 commited on
Commit
96146b5
·
verified ·
1 Parent(s): 4fa2bbe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. app/Dockerfile +18 -0
app/Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ libgl1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy project
12
+ COPY . .
13
+
14
+ # Install Python dependencies
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # HF Spaces runs on port 7860
18
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]