factorstudios commited on
Commit
6392ebc
·
verified ·
1 Parent(s): 199de71

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies for ffmpeg and audio processing
6
+ RUN apt-get update && apt-get install -y \
7
+ ffmpeg \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements
11
+ COPY requirements.txt .
12
+
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application files
17
+ COPY transcription_server.py .
18
+ COPY .env .
19
+
20
+ # Expose port 7860
21
+ EXPOSE 7860
22
+
23
+ # Run the application with uvicorn
24
+ CMD ["uvicorn", "transcription_server:app", "--host", "0.0.0.0", "--port", "7860"]