fix: copy src directory before pip install
All checks were successful
Build and Push Monarch MCP Docker Image / build (push) Successful in 16s
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:
@@ -9,8 +9,11 @@ RUN pip install uv
|
|||||||
# Copy pyproject.toml first to leverage Docker cache
|
# Copy pyproject.toml first to leverage Docker cache
|
||||||
COPY pyproject.toml .
|
COPY pyproject.toml .
|
||||||
|
|
||||||
|
# Copy source directory for editable install
|
||||||
|
COPY src/ ./src/
|
||||||
|
|
||||||
# Install dependencies into system python environment of builder
|
# Install dependencies into system python environment of builder
|
||||||
RUN uv pip install --system -e .
|
RUN uv pip install --system .
|
||||||
|
|
||||||
# Stage 2: Final Image
|
# Stage 2: Final Image
|
||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
|||||||
Reference in New Issue
Block a user