From 8d30e13f46d6aa1a139aae90def3a27124509dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A8=B8=EB=8B=88=ED=8E=98=EB=8B=88?= Date: Fri, 20 Mar 2026 15:18:18 +0900 Subject: [PATCH] feat: add Dockerfiles for agent server and sandbox (ARM64) --- Dockerfile.agent | 23 +++++++++++++++++++++++ Dockerfile.sandbox | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Dockerfile.agent create mode 100644 Dockerfile.sandbox diff --git a/Dockerfile.agent b/Dockerfile.agent new file mode 100644 index 0000000..48cef2f --- /dev/null +++ b/Dockerfile.agent @@ -0,0 +1,23 @@ +FROM python:3.12-slim + +RUN apt-get update && apt-get install -y --no-install-recommends \ + git curl && \ + rm -rf /var/lib/apt/lists/* + +RUN curl -LsSf https://astral.sh/uv/install.sh | sh +ENV PATH="/root/.local/bin:$PATH" + +WORKDIR /app + +COPY pyproject.toml uv.lock ./ +RUN uv sync --frozen --no-dev + +COPY agent/ ./agent/ +COPY langgraph.json ./ + +RUN useradd -m -u 1000 agent +USER agent + +EXPOSE 8000 + +CMD ["uv", "run", "uvicorn", "agent.webapp:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/Dockerfile.sandbox b/Dockerfile.sandbox new file mode 100644 index 0000000..90d633a --- /dev/null +++ b/Dockerfile.sandbox @@ -0,0 +1,16 @@ +FROM python:3.12-slim + +RUN apt-get update && apt-get install -y --no-install-recommends \ + git curl postgresql-client && \ + rm -rf /var/lib/apt/lists/* + +RUN curl -LsSf https://astral.sh/uv/install.sh | sh +ENV PATH="/root/.local/bin:$PATH" + +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ + apt-get install -y nodejs && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /workspace + +CMD ["tail", "-f", "/dev/null"]