Spaces:
Sleeping
Sleeping
| # Use lightweight Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy app code and requirements | |
| COPY requirements.txt . | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose HF Spaces port | |
| EXPOSE 7860 | |
| # Run Streamlit using the shell form (RECOMMENDED FIX) | |
| CMD streamlit run ./streamlit_app.py --server.port=7860 --server.headless=true |