File size: 613 Bytes
7de77c7
 
 
0e6afd0
0922a62
 
0e6afd0
0922a62
9cb973e
0922a62
 
88456fa
 
7de77c7
88456fa
 
7de77c7
582e1d3
0e6afd0
7de77c7
88456fa
7de77c7
 
88456fa
88f4f20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the Hugging Face Spaces base image
FROM huggingface/platform:latest

# Install system dependencies for PyAudio
RUN apt-get update && apt-get install -y \
    portaudio19-dev \
    python3-pyaudio \
    python3-dev \
    build-essential \
    && apt-get clean

# Set the working directory inside the container
WORKDIR /app

# Copy all project files into the container
COPY . /app

# Install Python dependencies
RUN pip install --no-cache-dir pyaudio

# Expose the Streamlit default port
EXPOSE 8501

# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]