chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Dockerfile for the Python LangGraph agent.
|
||||
# Mirrors the user experience: uv sync + langgraph dev (same as npm run dev:agent).
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Install uv by copying from the official image (avoids curl|sh pipe-swallow bug
|
||||
# where a 5xx on astral.sh silently produces an exit-0 layer with no uv binary).
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy agent source and install deps the same way users do (uv sync)
|
||||
COPY pyproject.toml uv.lock langgraph.json ./
|
||||
COPY src/ ./src/
|
||||
COPY main.py ./
|
||||
|
||||
RUN uv sync
|
||||
|
||||
EXPOSE 8123
|
||||
|
||||
# Run langgraph dev the same way the npm wrapper does
|
||||
CMD ["uv", "run", "langgraph", "dev", "--host", "0.0.0.0", "--port", "8123", "--no-browser"]
|
||||
Reference in New Issue
Block a user