Skip to content

Commit

Permalink
Only rebuild rust in Docker with vendor changes (ethereum#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter authored and ashishb committed Aug 19, 2019
1 parent 07ec149 commit 676ffe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

FROM ubuntu:16.04 as rustbuilder
RUN apt update && apt install -y curl musl-tools
ADD . /go-ethereum
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH=$PATH:~/.cargo/bin
RUN $HOME/.cargo/bin/rustup install 1.36.0 && $HOME/.cargo/bin/rustup default 1.36.0 && $HOME/.cargo/bin/rustup target add x86_64-unknown-linux-musl
ADD ./vendor /go-ethereum/vendor
RUN cd /go-ethereum/vendor/github.com/celo-org/bls-zexe/bls && $HOME/.cargo/bin/cargo build --target x86_64-unknown-linux-musl --release

# Build Geth in a stock Go builder container
Expand Down

0 comments on commit 676ffe5

Please sign in to comment.