feat: add Dockerfiles for agent server and sandbox (ARM64)

This commit is contained in:
머니페니 2026-03-20 15:18:18 +09:00
parent 760adf3632
commit 8d30e13f46
2 changed files with 39 additions and 0 deletions

23
Dockerfile.agent Normal file
View File

@ -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"]

16
Dockerfile.sandbox Normal file
View File

@ -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"]