File size: 844 Bytes
db05121
00537c6
 
db05121
 
 
 
 
 
00537c6
 
db05121
 
00537c6
 
db05121
00537c6
 
 
d412809
00537c6
db05121
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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"]