Skip to content

Commit

Permalink
dev: update docker (#771)
Browse files Browse the repository at this point in the history
* update dockerfile

* update the docker file to push the genesis binary

* split the build
  • Loading branch information
greged93 authored Feb 14, 2024
1 parent 11a7dc4 commit 413e785
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/rpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 413e785

Please sign in to comment.