khurrameycon commited on
Commit
3117187
·
verified ·
1 Parent(s): b3ce96b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y espeak-ng libsndfile1
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy requirements first for caching
10
+ COPY requirements.txt .
11
+
12
+ # Install Python dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application code
16
+ COPY . .
17
+
18
+ # Run FastAPI
19
+ CMD uvicorn app:app --host 0.0.0.0 --port 7860