AmrithTech2K6/CSCLM2K6
0
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install system dependencies (minimal for Streamlit)6RUN apt-get update && apt-get install -y \7 curl \8 && rm -rf /var/lib/apt/lists/*9 10# Copy requirements first for better Docker layer caching11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14# Copy ALL app files (app.py is in ROOT directory)15COPY . .16 17# Expose Streamlit default port18EXPOSE 850119 20# Health check for Hugging Face Spaces monitoring21HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \22 CMD curl --fail http://localhost:8501/_stcore/health || exit 123 24# Run Streamlit app (CORRECT: app.py in root, NOT src/streamlit_app.py)25ENTRYPOINT ["streamlit", "run", "app.py", \26 "--server.port=8501", \27 "--server.address=0.0.0.0", \28 "--server.enableCORS=false", \29 "--server.enableXsrfProtection=false", \30 "--server.headless=true"]