Dilexsan commited on
Commit
84bcac9
·
1 Parent(s): 837c6de

Upload emotion API project

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