File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ WORKDIR /build
1616# Copy project files
1717COPY . .
1818
19- # Build the wheel using uv
20- RUN uv build --directory packages/agent --wheel
19+ # Build all workspace dependency wheels
20+ RUN uv build --directory packages/core --wheel \
21+ && uv build --directory packages/textfsm --wheel \
22+ && uv build --directory packages/agent --wheel
2123
2224# Final stage
2325FROM ghcr.io/astral-sh/uv:python3.12-trixie
@@ -37,7 +39,7 @@ RUN useradd -m -u 1000 netdriver
3739WORKDIR /app
3840
3941# Copy built wheel and install it using uv
40- COPY --from=builder /build/packages/agent/ dist/*.whl /tmp/
42+ COPY --from=builder /build/dist/*.whl /tmp/
4143RUN uv pip install --system --no-cache /tmp/*.whl \
4244 && rm -rf /tmp/*.whl
4345
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ WORKDIR /build
1616# Copy project files
1717COPY . .
1818
19- # Build the wheel using uv
20- RUN uv build --directory packages/simunet --wheel
19+ # Build all workspace dependency wheels
20+ RUN uv build --directory packages/core --wheel \
21+ && uv build --directory packages/simunet --wheel
2122
2223# Final stage
2324FROM ghcr.io/astral-sh/uv:python3.12-trixie
@@ -37,7 +38,7 @@ RUN useradd -m -u 1000 netdriver
3738WORKDIR /app
3839
3940# Copy built wheel and install it using uv
40- COPY --from=builder /build/packages/simunet/ dist/*.whl /tmp/
41+ COPY --from=builder /build/dist/*.whl /tmp/
4142RUN uv pip install --system --no-cache /tmp/*.whl \
4243 && rm -rf /tmp/*.whl
4344
You can’t perform that action at this time.
0 commit comments