-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.api
More file actions
38 lines (32 loc) · 783 Bytes
/
Dockerfile.api
File metadata and controls
38 lines (32 loc) · 783 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
# Dockerfile pour l'API LangGraph
FROM python:3.12-slim
WORKDIR /app
# Installation des dépendances système
RUN apt-get update && apt-get install -y \
gcc \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Installation de LangGraph et dépendances
RUN pip install --no-cache-dir \
langgraph \
"langgraph-cli[inmem]" \
langchain \
langchain-openai \
langchain-anthropic \
langchain-core \
watchfiles \
fastapi \
uvicorn \
pydantic \
redis \
psycopg2-binary
# Copie de la configuration
COPY langgraph.json .
COPY agents/ ./agents/
COPY api_watcher.py ./
# Port par défaut
EXPOSE 8000
# Commande de démarrage: watcher qui redémarre l'API sur changement
CMD ["python", "-u", "api_watcher.py"]