Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions coral_factory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand All @@ -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"]


9 changes: 0 additions & 9 deletions coral_factory/requirements.txt

This file was deleted.