Yanmife commited on
Commit
232af4e
·
verified ·
1 Parent(s): 7035096

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y build-essential portaudio19-dev ffmpeg && \
6
+ apt-get clean
7
+
8
+ # Upgrade pip and install Python dependencies
9
+ COPY requirements.txt /app/requirements.txt
10
+ WORKDIR /app
11
+ RUN pip install --upgrade pip && \
12
+ pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the rest of your app
15
+ COPY . /app
16
+
17
+ # Run the app
18
+ CMD ["python", "app.py"]