something is kinda working

This commit is contained in:
2025-12-13 05:41:13 +01:00
parent 955f992f8e
commit 1f313f090a
20 changed files with 390 additions and 349 deletions

26
web/agent/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM python:3.13-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Install dependencies
RUN uv sync --frozen --no-dev
# Copy application code
COPY src ./src
# Create non-root user
RUN useradd --create-home --shell /bin/bash agent
USER agent
EXPOSE 8000
ENV PORT=8000
ENV HOST="0.0.0.0"
CMD ["uv", "run", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]