Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
# Start from an official Python base image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Install system dependencies for PortAudio
|
5 |
RUN apt-get update && \
|
6 |
-
apt-get install -y
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
#
|
10 |
COPY requirements.txt .
|
11 |
-
RUN pip install -r requirements.txt
|
12 |
|
13 |
# Copy the Streamlit app files into the container
|
14 |
COPY . /app
|
|
|
1 |
# Start from an official Python base image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
+
# Install system dependencies for PortAudio and other necessary tools
|
5 |
RUN apt-get update && \
|
6 |
+
apt-get install -y \
|
7 |
+
portaudio19-dev \
|
8 |
+
gcc \
|
9 |
+
g++ \
|
10 |
+
libsndfile1-dev \
|
11 |
+
&& apt-get clean
|
12 |
|
13 |
+
# Copy requirements.txt and install Python dependencies
|
14 |
COPY requirements.txt .
|
15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
# Copy the Streamlit app files into the container
|
18 |
COPY . /app
|