Guhanselvam commited on
Commit
ff926bc
·
verified ·
1 Parent(s): 6679590

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Set the working directory
4
+ WORKDIR /home/user/app
5
+
6
+ # Install necessary system packages, including PortAudio
7
+ RUN apt-get update && \
8
+ apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx curl portaudio19-dev && \
9
+ rm -rf /var/lib/apt/lists/* && \
10
+ git lfs install
11
+
12
+ # Copy requirements.txt before installing dependencies
13
+ COPY requirements.txt ./
14
+
15
+ # Upgrade pip and install Python dependencies
16
+ RUN pip install --no-cache-dir --upgrade pip && \
17
+ pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy your application code
20
+ COPY . .
21
+
22
+ # Command to run your application
23
+ CMD ["python", "your_application.py"]