chore: experimental support greenlight cli in dockerfile

This commit is contained in:
Roland Bewick 2024-02-15 17:57:24 +07:00
parent e0c446d881
commit 028d4293d9

View file

@ -35,11 +35,23 @@ COPY --from=frontend /build/frontend/dist ./frontend/dist
RUN GOARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) go build -o main .
RUN wget https://github.com/breez/breez-sdk-go/raw/main/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so
#RUN wget https://github.com/breez/breez-sdk-go/raw/main/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so
RUN wget https://github.com/breez/breez-sdk-go/raw/v0.2.14/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so
# Start a new, final image to reduce size.
FROM debian as final
######
# TEMPORARY GREENLIGHT CLI
RUN apt-get update && \
apt-get install -y python3-pip wget
RUN pip install -U gl-client --break-system-packages
RUN pip install --extra-index-url=https://us-west2-python.pkg.dev/c-lightning/greenlight-pypi/simple/ -U glcli --break-system-packages
#RUN python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])'
RUN wget -O /usr/local/lib/python3.11/dist-packages/glcli/cli.py https://raw.githubusercontent.com/Blockstream/greenlight/2dc5a94668d41baef7275dae860c09b4a5dba198/tools/glcli/glcli/cli.py
######
ENV LD_LIBRARY_PATH=/usr/lib/libbreez
#