Zasha1 commited on
Commit
9cb973e
·
verified ·
1 Parent(s): 88f4f20

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 PyAudio and other required libraries
5
  RUN apt-get update && apt-get install -y \
6
  portaudio19-dev \
7
- libasound-dev \
8
  libportaudio2 \
9
  libportaudiocpp0 \
10
- gcc \
11
- g++ \
12
  python3-dev \
13
- python3-pip \
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