sdafd commited on
Commit
dc978e5
·
verified ·
1 Parent(s): ffc9f6e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y ffmpeg
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Install Python dependencies
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy application code
14
+ COPY app.py .
15
+
16
+ # Expose API port
17
+ EXPOSE 8000
18
+
19
+ # Start the server
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]