Spaces:
Sleeping
Sleeping
| # Use a small Python base image | |
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 PORT=7860 | |
| WORKDIR /app | |
| # System deps (optional): build-base for matplotlib backends if needed | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 libsm6 libxext6 libxrender1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| CMD streamlit run app.py --server.port $PORT --server.address 0.0.0.0 | |