cp existing libbreez_sdk_bindings.so from /go/pkg/mod/github.com/breez/ resolved version instead of wget'ing from github

This commit is contained in:
Fmar 2024-02-15 11:35:49 +01:00
parent 635b8aee02
commit a28575ab85

View file

@ -35,8 +35,7 @@ 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/v0.2.14/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so
RUN cp `find /go/pkg/mod/github.com/breez/ |grep linux-amd64 |grep libbreez_sdk_bindings.so` ./
# Start a new, final image to reduce size.
FROM debian as final