mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 11:56:23 +00:00
33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
FROM debian:bullseye-slim as builder
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG LIGHTNINGD_VERSION=v23.08
|
|
RUN apt-get update -qq && \
|
|
apt-get install -qq -y --no-install-recommends \
|
|
autoconf \
|
|
automake \
|
|
build-essential \
|
|
ca-certificates \
|
|
curl \
|
|
git \
|
|
protobuf-compiler
|
|
|
|
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
|
|
RUN git clone --recursive --branch cln-grpc-hold https://github.com/daywalker90/lightning.git /tmp/cln-grpc-hold
|
|
RUN cd /tmp/cln-grpc-hold \
|
|
&& cargo build --release
|
|
|
|
FROM elementsproject/lightningd:v23.08 as final
|
|
|
|
COPY --from=builder /tmp/cln-grpc-hold/target/release/cln-grpc-hold /tmp/cln-grpc-hold
|
|
COPY config /tmp/config
|
|
COPY entrypoint.sh entrypoint.sh
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
EXPOSE 9735 9835
|
|
ENTRYPOINT [ "/usr/bin/tini", "-g", "--", "./entrypoint.sh" ] |