Shami96 commited on
Commit
875fd1e
·
verified ·
1 Parent(s): 4a42f04

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -15
Dockerfile CHANGED
@@ -1,26 +1,15 @@
1
  FROM python:3.12-slim
2
 
3
- # System deps
4
  RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/*
5
-
6
- # Create non-root user (HF Spaces requirement)
7
  RUN useradd -m -u 1000 agent
8
- WORKDIR /home/agent
9
 
10
- # Install Deep Agents + deps
11
- RUN pip install --no-cache-dir \
12
- deepagents \
13
- langchain-groq \
14
- fastapi \
15
- uvicorn[standard] \
16
- tavily-python
17
 
18
- # Copy agent config
19
- COPY --chown=agent:agent . /home/agent/app
20
- WORKDIR /home/agent/app
21
 
22
  USER agent
23
-
24
  EXPOSE 7860
25
 
26
  CMD ["python", "server.py"]
 
1
  FROM python:3.12-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/*
 
 
4
  RUN useradd -m -u 1000 agent
5
+ WORKDIR /home/agent/app
6
 
7
+ COPY --chown=agent:agent requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
9
 
10
+ COPY --chown=agent:agent . .
 
 
11
 
12
  USER agent
 
13
  EXPOSE 7860
14
 
15
  CMD ["python", "server.py"]