093xpku commited on
Commit
4280ecb
·
1 Parent(s): 8de08bd

Add root Dockerfile for Render Docker deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ # Install system dependencies for OpenCV and pyttsx3/espeak
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential \
6
+ libgl1-mesa-glx \
7
+ libglib2.0-0 \
8
+ espeak \
9
+ alsa-utils \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ WORKDIR /workspace
13
+
14
+ # Copy and install python dependencies
15
+ COPY backend/requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy backend code
19
+ COPY backend/ .
20
+
21
+ # Expose FastAPI port
22
+ EXPOSE 8000
23
+
24
+ # Run FastAPI app
25
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]