Spaces:
Build error
Build error
| # Use Python 3.11 | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install FFmpeg for audio decoding | |
| RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| # Copy all project files to the container | |
| COPY . . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Configure Streamlit/HF port & headless | |
| # Start Streamlit | |
| ENV PORT=7860 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| CMD ["bash", "-c", "streamlit run streamlit_app.py --server.port=$PORT --server.address=0.0.0.0 --server.headless=true"] | |