# Docker runtime for HF Space # Use a slim Python base FROM python:3.11-slim # Basic hygiene ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 # Working directory WORKDIR /app # Copy and install Python deps first (better layer caching) COPY requirements.txt /app/ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy app code COPY streamlit_app.py /app/ COPY README.md /app/ # Expose the port that the Space will connect to EXPOSE 7860 # Run Streamlit on 0.0.0.0:7860 CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]