Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| # HF Spaces sets PORT; default to 7860 for local dev | |
| ENV PORT=7860 | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/* && pip install --no-cache-dir -r /app/requirements.txt | |
| COPY app.py /app/app.py | |
| EXPOSE 7860 | |
| # Use shell form so $PORT expands | |
| CMD streamlit run app.py --server.port $PORT --server.address 0.0.0.0 | |