Skip to content

Commit 4cb142d

Browse files
fix(docker): fix Dockerfile build failures for container publish
- agent-mesh/Dockerfile: remove -e (editable install) — not appropriate for Docker builds and causes pip failures in multi-platform builds - Dockerfile.sidecar: fix COPY paths for repo-root build context (was using relative paths like 'modules/' which don't exist at root) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1b72b21 commit 4cb142d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

packages/agent-mesh/docker/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ COPY packages/agent-mesh/pyproject.toml ./
3535
COPY packages/agent-mesh/src/ ./src/
3636

3737
# Install the package with server extras (fastapi + uvicorn)
38-
RUN pip install --no-cache-dir -e ".[server]" && \
39-
rm -rf /root/.cache
38+
RUN pip install --no-cache-dir ".[server]"
4039

4140
# Create non-root user
4241
RUN useradd -m -s /bin/bash -u 1000 agentmesh

packages/agent-os/Dockerfile.sidecar

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ LABEL description="Agent Governance Toolkit — governance sidecar for autonomou
1313

1414
WORKDIR /app
1515

16-
# Copy all source (modules/ is needed for full [full] install)
17-
COPY pyproject.toml ./
18-
COPY src/ ./src/
19-
COPY modules/ ./modules/
16+
# Copy agent-os package source (context is repo root)
17+
COPY packages/agent-os/pyproject.toml ./
18+
COPY packages/agent-os/src/ ./src/
19+
COPY packages/agent-os/modules/ ./modules/
2020

21-
RUN pip install --no-cache-dir -e ".[full]" && \
22-
rm -rf /root/.cache
21+
RUN pip install --no-cache-dir ".[full]"
2322

2423
# Create non-root user
2524
RUN useradd -m -s /bin/bash sidecar

0 commit comments

Comments
 (0)