| # Scope Interview Agent — Hugging Face Docker Space (same recipe as code-search) | |
| FROM python:3.12-slim-bookworm | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR /home/user/app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| # App + pre-rendered avatar. The agent's instructions are fetched at runtime | |
| # from NASA-IMPACT/akd-plugins (single source of truth). | |
| COPY --chown=user:user app.py bot-avatar.png ./ | |
| COPY --chown=user:user artifact ./artifact | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |