fix: install dependencies directly instead of building package

Hatchling couldn't find the package directory. Since we run the app
directly with uvicorn (not as an installed library), install deps
explicitly in Dockerfile.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 17:35:26 +00:00
parent 6f7b94d6f8
commit febdebf3dd
+4 -4
View File
@@ -2,15 +2,15 @@ FROM python:3.13-slim
WORKDIR /app
# Install dependencies
# Copy application first (needed for pip install)
COPY pyproject.toml .
RUN pip install --no-cache-dir .
# Copy application
COPY api/ api/
COPY mcp_server/ mcp_server/
COPY config/ config/
# Install dependencies only (not the project itself)
RUN pip install --no-cache-dir fastapi "uvicorn[standard]" httpx pydantic openai
# Create data directory for skills/memory
RUN mkdir -p /opt/data/skills /opt/data/memory