-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.langgraph
More file actions
38 lines (29 loc) · 1.04 KB
/
Copy pathDockerfile.langgraph
File metadata and controls
38 lines (29 loc) · 1.04 KB
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 for LangGraph Server
# ToG 3.0 MACER Workflow Server
# =============================================================================
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY pyproject.toml README.md ./
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -e . && \
pip install --no-cache-dir "langgraph-cli[inmem]>=0.1.0"
# Copy application code
COPY src/ ./src/
COPY langgraph.json ./
# Environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
# Expose port
EXPOSE 8000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD curl -f http://localhost:8000/health || exit 1
# Run LangGraph Server
CMD ["langgraph", "dev", "--host", "0.0.0.0", "--port", "8000", "--no-browser"]