Spaces:
Build error
Build error
File size: 568 Bytes
8e0b92b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.10
# Install system dependencies
RUN apt-get update && apt-get install -y \
portaudio19-dev \
python3-pyaudio \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /home/user/app
# Copy files to container
COPY requirements.txt /tmp/requirements.txt
COPY app.py /home/user/app/app.py
# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Expose Streamlit default port
EXPOSE 7860
# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.enableCORS", "false"]
|