fix: copy src directory before pip install
All checks were successful
Build and Push Monarch MCP Docker Image / build (push) Successful in 16s

Dockerfile was failing because we tried to install in editable mode
before copying the src directory. Copy src/ first so that uv can
find the package structure properly.
This commit is contained in:
Ben
2025-12-24 21:42:24 +00:00
parent 1d2bf199e1
commit 1e8d484389

View File

@@ -9,8 +9,11 @@ RUN pip install uv
# Copy pyproject.toml first to leverage Docker cache
COPY pyproject.toml .
# Copy source directory for editable install
COPY src/ ./src/
# Install dependencies into system python environment of builder
RUN uv pip install --system -e .
RUN uv pip install --system .
# Stage 2: Final Image
FROM python:3.12-slim