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