FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim WORKDIR /app # Enable bytecode compilation ENV UV_COMPILE_BYTECODE=1 # Copy from build context COPY pyproject.toml uv.lock* ./ # Install the project's dependencies RUN uv sync --frozen --no-install-project --no-dev # Copy the rest of the application COPY . . # Run the application CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]