From 4cd6210c19485a646c65a719da9f2e64a5f58708 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 18 May 2022 11:22:28 +0200 Subject: [PATCH] docker: Add rust build support to Dockerfile We weren't building the Rust plugins in the `Dockerfile` since we were missing the dependencies. Now we do. Changelog-Fixed: docker: The docker images are now built with the rust plugins `cln-grpc` --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 606631b3a..7fb501eea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,6 +92,11 @@ RUN wget -q https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz \ && make \ && make install && cd .. && rm gmp-6.1.2.tar.xz && rm -rf gmp-6.1.2 +ENV RUST_PROFILE=release +ENV PATH=$PATH:/root/.cargo/bin/ +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN rustup toolchain install stable --component rustfmt --allow-downgrade + WORKDIR /opt/lightningd COPY . /tmp/lightning RUN git clone --recursive /tmp/lightning . && \