FROM python:3.11-slim # Non-root user (required by Hugging Face Spaces) and the folder for the transcript database. # Enable "Persistent Storage" on the Space so /data survives restarts. RUN useradd -m -u 1000 user && mkdir -p /data && chown user /data USER user ENV PATH=/home/user/.local/bin:$PATH \ INTERVIEWS_DB_PATH=/data/interviews.db WORKDIR /home/user/app COPY --chown=user requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY --chown=user . . EXPOSE 7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]