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