diff --git a/compute/compute-node.Dockerfile b/compute/compute-node.Dockerfile index 1236372d27..a62b392a10 100644 --- a/compute/compute-node.Dockerfile +++ b/compute/compute-node.Dockerfile @@ -1624,7 +1624,19 @@ ENV BUILD_TAG=$BUILD_TAG USER nonroot # Copy entire project to get Cargo.* files with proper dependencies for the whole project -COPY --chown=nonroot . . +COPY --chown=nonroot Cargo.lock Cargo.toml rust-toolchain.toml . +COPY .cargo .cargo +COPY .config .config +COPY compute_tools compute_tools +COPY control_plane control_plane +COPY libs libs +COPY pageserver pageserver +COPY proxy proxy +COPY storage_scrubber storage_scrubber +COPY safekeeper safekeeper +COPY storage_broker storage_broker +COPY storage_controller storage_controller +COPY workspace_hack workspace_hack RUN --mount=type=cache,uid=1000,target=/home/nonroot/.cargo/registry \ --mount=type=cache,uid=1000,target=/home/nonroot/.cargo/git \ --mount=type=cache,uid=1000,target=/home/nonroot/target \