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