From 12874c0c800b67db9d385fee055d14f4d03bdd87 Mon Sep 17 00:00:00 2001 From: alexchvod Date: Sun, 26 Oct 2025 18:30:57 +0000 Subject: [PATCH 1/2] Update Dockerfile to use uv --- coral_factory/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/coral_factory/Dockerfile b/coral_factory/Dockerfile index 8ea076b..62fe61c 100644 --- a/coral_factory/Dockerfile +++ b/coral_factory/Dockerfile @@ -2,6 +2,7 @@ FROM python:3.12-slim # Install build-essential for g++ and other build tools RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ build-essential \ g++ \ && rm -rf /var/lib/apt/lists/* @@ -12,19 +13,20 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app -# Install Python dependencies first (better layer caching) -COPY requirements.txt ./requirements.txt -RUN pip install --upgrade pip \ - && pip install -r requirements.txt +# Install uv and make sure it is on PATH +RUN curl -LsSf https://astral.sh/uv/install.sh | sh +ENV PATH="/root/.local/bin:${PATH}" # Copy the application source COPY . . +RUN uv sync + EXPOSE 8001 # Default auth token can be overridden at runtime ENV FACTORY_BEARER_TOKEN=bearer-token-2024 -CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"] +CMD ["uv", "run", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"] From 1c7573f43af793127c47de5989492e24c354064d Mon Sep 17 00:00:00 2001 From: alexchvod Date: Sun, 26 Oct 2025 18:31:48 +0000 Subject: [PATCH 2/2] remove requirements.txt --- coral_factory/requirements.txt | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 coral_factory/requirements.txt diff --git a/coral_factory/requirements.txt b/coral_factory/requirements.txt deleted file mode 100644 index fbc684f..0000000 --- a/coral_factory/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -fastapi -uvicorn -pydantic -python-dotenv -openai-agents -arcadepy -agents-arcade -firebase-admin -litellm \ No newline at end of file