Skip to content

Commit

Permalink
Add local builder stage
Browse files Browse the repository at this point in the history
  • Loading branch information
muzuke committed Jan 22, 2025
1 parent d1ea8b2 commit 59d43e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ COPY --from=library-build-stage /artifacts/libcorerust.so /
FROM scratch AS java-container
COPY --from=java-build-stage /radixdlt/core/build/distributions /

# =================================================================================================
# LAYER: library-builder-local
# This layer is just used for local building in development via `local-cached-rust-build.yaml`.
# Specifically - the Rust isn't built as part of the image, instead the CMD of the image is to do the build.
# It allows us to use volumes at runtime to cache the build dependencies and artifacts.
# =================================================================================================
FROM radixdlt/babylon-node-build-layers:${IMAGE_VERSION}-rust AS library-builder-local

WORKDIR /app

COPY docker/build_scripts/cargo_local_build.sh /opt/radixdlt/cargo_local_build.sh

COPY core-rust ./

FROM radixdlt/babylon-node-build-layers:${IMAGE_VERSION}-app AS app-container

# Copy in the application artifacts
Expand Down

0 comments on commit 59d43e4

Please sign in to comment.