Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
# Use the Hugging Face Spaces base image
|
2 |
FROM huggingface/platform:latest
|
3 |
|
4 |
-
# Install system dependencies for
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
portaudio19-dev \
|
7 |
-
|
8 |
-
libportaudio2 \
|
9 |
-
libportaudiocpp0 \
|
10 |
python3-dev \
|
11 |
build-essential \
|
12 |
&& apt-get clean
|
@@ -17,11 +15,8 @@ WORKDIR /app
|
|
17 |
# Copy all project files into the container
|
18 |
COPY . /app
|
19 |
|
20 |
-
# Verify PortAudio installation
|
21 |
-
RUN ldconfig -p | grep portaudio
|
22 |
-
|
23 |
# Install Python dependencies
|
24 |
-
RUN pip install --no-cache-dir
|
25 |
|
26 |
# Expose the Streamlit default port
|
27 |
EXPOSE 8501
|
|
|
1 |
# Use the Hugging Face Spaces base image
|
2 |
FROM huggingface/platform:latest
|
3 |
|
4 |
+
# Install system dependencies for PyAudio
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
portaudio19-dev \
|
7 |
+
python3-pyaudio \
|
|
|
|
|
8 |
python3-dev \
|
9 |
build-essential \
|
10 |
&& apt-get clean
|
|
|
15 |
# Copy all project files into the container
|
16 |
COPY . /app
|
17 |
|
|
|
|
|
|
|
18 |
# Install Python dependencies
|
19 |
+
RUN pip install --no-cache-dir pyaudio
|
20 |
|
21 |
# Expose the Streamlit default port
|
22 |
EXPOSE 8501
|