Skip to content

Commit

Permalink
fix elecrs to use nightly (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
cylewitruk authored Jan 20, 2025
1 parent 32752a3 commit dfddc97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/electrs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ RUN apt-get install -qqy librocksdb-dev curl git
# --------------------------------------------------------
### Electrum Rust Server ###
FROM builder AS electrs-build
RUN apt-get install -qqy cargo clang cmake
RUN apt-get install -qqy clang cmake
ARG GIT_URI='https://github.com/mempool/electrs.git'
ARG GIT_BRANCH='mempool'
# Install rust nightly
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN ~/.cargo/bin/rustup --verbose toolchain install nightly
# Install electrs
WORKDIR /build/electrs
RUN git clone ${GIT_URI} -b ${GIT_BRANCH} .
RUN cargo install --locked --path .
RUN ~/.cargo/bin/cargo +nightly install --locked --path .
# --------------------------------------------------------
FROM builder AS result
# Copy the binaries
Expand Down

0 comments on commit dfddc97

Please sign in to comment.