Zasha1 commited on
Commit
342f0a3
·
verified ·
1 Parent(s): 3470239

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -12
Dockerfile CHANGED
@@ -1,25 +1,20 @@
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
11
-
12
  # Set the working directory inside the container
13
  WORKDIR /app
14
-
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
23
-
24
  # Run the Streamlit app
25
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
  # Use the Hugging Face Spaces base image
2
  FROM huggingface/platform:latest
3
+ # Install system dependencies for PyAudio and other build tools
 
4
  RUN apt-get update && apt-get install -y \
5
  portaudio19-dev \
6
+ libasound-dev \
7
+ libportaudio2 \
8
+ libportaudiocpp0 \
9
+ gcc \
10
  && apt-get clean
 
11
  # Set the working directory inside the container
12
  WORKDIR /app
 
13
  # Copy all project files into the container
14
  COPY . /app
 
15
  # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
 
17
  # Expose the Streamlit default port
18
  EXPOSE 8501
 
19
  # Run the Streamlit app
20
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]