Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -1,16 +1,14 @@
|
|
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 |
-
gcc \
|
11 |
-
g++ \
|
12 |
python3-dev \
|
13 |
-
|
14 |
&& apt-get clean
|
15 |
|
16 |
# Set the working directory inside the container
|
@@ -19,8 +17,8 @@ WORKDIR /app
|
|
19 |
# Copy all project files into the container
|
20 |
COPY . /app
|
21 |
|
22 |
-
# Install Python dependencies
|
23 |
-
RUN pip install --no-cache-dir sounddevice
|
24 |
|
25 |
# Expose the Streamlit default port
|
26 |
EXPOSE 8501
|
|
|
1 |
# Use the Hugging Face Spaces base image
|
2 |
FROM huggingface/platform:latest
|
3 |
|
4 |
+
# Install system dependencies for PortAudio
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
portaudio19-dev \
|
7 |
+
libasound2-dev \
|
8 |
libportaudio2 \
|
9 |
libportaudiocpp0 \
|
|
|
|
|
10 |
python3-dev \
|
11 |
+
build-essential \
|
12 |
&& apt-get clean
|
13 |
|
14 |
# Set the working directory inside the container
|
|
|
17 |
# Copy all project files into the container
|
18 |
COPY . /app
|
19 |
|
20 |
+
# Install Python dependencies with verbose output
|
21 |
+
RUN pip install --no-cache-dir -v sounddevice
|
22 |
|
23 |
# Expose the Streamlit default port
|
24 |
EXPOSE 8501
|