From 413e7853e5d8bcaf74c58def97e52feae942be6e Mon Sep 17 00:00:00 2001 From: greged93 <82421016+greged93@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:40:03 +0100 Subject: [PATCH] dev: update docker (#771) * update dockerfile * update the docker file to push the genesis binary * split the build --- docker/rpc/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/rpc/Dockerfile b/docker/rpc/Dockerfile index 1bd83d1a4..60aa87933 100644 --- a/docker/rpc/Dockerfile +++ b/docker/rpc/Dockerfile @@ -65,6 +65,11 @@ RUN build_platform() { \ --target=$ARCH; \ # Copy the built binary to a common release directory cp /usr/src/rpc/target/$ARCH/release/kakarot-rpc /usr/src/rpc/target/release/; \ + # Build the hive genesis binary + BINDGEN_EXTRA_CLANG_ARGS=$BINDGEN_EXTRA_CLANG_ARGS cargo build --release \ + --bin hive_genesis --features testing --target=$ARCH; \ + # Copy the genesis binary to a common release directory + cp /usr/src/rpc/target/$ARCH/release/hive_genesis /usr/src/rpc/target/release/; \ } \ && rustup self update \ && case "$TARGETPLATFORM" in \ @@ -91,6 +96,7 @@ WORKDIR /usr/src/app # Copy the built binary from the previous container COPY --from=builder /usr/src/rpc/target/release/kakarot-rpc /usr/local/bin +COPY --from=builder /usr/src/rpc/target/release/hive_genesis /usr/local/bin # Expose the port that the RPC server will run on EXPOSE 9545