Upload 2 files
Browse files- dockerfile +22 -0
- packages.txt +5 -0
dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
# Install system dependencies including PortAudio
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
libportaudio2 \
|
8 |
+
libportaudiocpp0 \
|
9 |
+
portaudio19-dev \
|
10 |
+
ffmpeg \
|
11 |
+
libsndfile1 \
|
12 |
+
&& rm -rf /var/lib/apt/lists/*
|
13 |
+
|
14 |
+
# Copy requirements and install Python packages
|
15 |
+
COPY requirements.txt /code/requirements.txt
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Copy your application code
|
19 |
+
COPY . /code/
|
20 |
+
|
21 |
+
# Command to run the application
|
22 |
+
CMD ["python", "app.py"]
|
packages.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
libportaudio2
|
2 |
+
libportaudiocpp0
|
3 |
+
portaudio19-dev
|
4 |
+
ffmpeg
|
5 |
+
libsndfile1
|