| # NASA Scientific Code Search Agent β Hugging Face Docker Space | |
| # (artifacts-driven, same recipe as scope-interview-agent: public deps only) | |
| FROM python:3.12-slim-bookworm | |
| # HF Spaces run as uid 1000. | |
| 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 CARE workspace artifacts. The artifacts | |
| # are a copy of NASA-IMPACT/akd-plugins β plugins/code-search-assistant (SKILL.md | |
| # is bundled as artifact/agents.md; references/ ride along at artifact/ root). | |
| COPY --chown=user:user app.py bot-avatar-v2.png ./ | |
| COPY --chown=user:user artifact ./artifact | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |