mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
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`
This commit is contained in:
parent
b15cf312e8
commit
4cd6210c19
1 changed files with 5 additions and 0 deletions
|
@ -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 . && \
|
||||
|
|
Loading…
Add table
Reference in a new issue