9f4d5e13aa
* Add CLN node to docker-compose.yml * Attach CLN wallet via CLNRest * Remove leading space * Implement autowithdrawal to CLN in worker * Fix UnhandledSchemeError during build See https://github.com/vercel/next.js/discussions/33982 * Refactor CLN invoice code into @/lib/cln * Fix missing env vars * Fix validation error if rune invalid * Update header * Add rune placeholder * Fix missing expiry for test invoice * Remove nonsensical comment * Remove unnecessary async * Show level SUCCESS as OK in logs * Add stacker_cln commands to sndev * fix sndev posix compliance, add cln_withdraw * give stacker_cln larger channels --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
16 lines
901 B
Docker
16 lines
901 B
Docker
FROM polarlightning/clightning:23.08
|
|
|
|
RUN apt-get update -y \
|
|
&& apt-get install -y jq wget \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN wget https://raw.githubusercontent.com/ElementsProject/lightning/v23.08/plugins/clnrest/requirements.txt \
|
|
&& pip install -r requirements.txt
|
|
|
|
# make sure that wallet and identity is persisted across rebuilds.
|
|
# server certificates contain stacker_lnd as a custom domain.
|
|
# see https://docs.corelightning.org/docs/grpc#generating-custom-certificates-optional
|
|
# since CLNRest in CLNv23.08 seems to use client certificates, they also contain stacker_lnd as a custom domain.
|
|
# see https://github.com/ElementsProject/lightning/tree/v23.08/plugins/clnrest#configuration
|
|
COPY ["./hsm_secret", "./ca-key.pem", "./ca.pem", "./server-key.pem", "./server.pem", "./client-key.pem", "./client.pem", "/home/clightning/.lightning/regtest/"] |