-
Notifications
You must be signed in to change notification settings - Fork 368
/
Copy pathDockerfile
35 lines (28 loc) · 1.09 KB
/
Dockerfile
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
FROM python:3.11-slim-buster
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# 1) Install uv package manager
# By default, uv installs to ~/.local/bin. We update PATH so uv is recognized.
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}"
# 2) Copy the repository content
COPY . /app
# 3) Provide default environment variables to point to Ollama (running elsewhere)
# Adjust the OLLAMA_URL to match your actual Ollama container or service.
ENV OLLAMA_BASE_URL="http://localhost:11434/"
# 4) Expose the port that LangGraph dev server uses (default: 2024)
EXPOSE 2024
# 5) Launch the assistant with the LangGraph dev server:
# Equivalent to the quickstart: uvx --refresh --from "langgraph-cli[inmem]" --with-editable . --python 3.11 langgraph dev
CMD ["uvx", \
"--refresh", \
"--from", "langgraph-cli[inmem]", \
"--with-editable", ".", \
"--python", "3.11", \
"langgraph", \
"dev", \
"--host", "0.0.0.0"]