Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libsm6 libxext6 libxrender-dev \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements-prod.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements-prod.txt | |
| # Copy application | |
| COPY . . | |
| # Create outputs directory for models | |
| RUN mkdir -p outputs | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Health check | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "streamlit_app.py", "--logger.level=info", "--server.port=7860", "--server.address=0.0.0.0"] | |