fix: build proper Docker image for arm64 (#501)

Co-authored-by: Roman Dmitrienko <roman@dmitrienko.com>
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
This commit is contained in:
Roman D 2024-06-26 06:57:05 +02:00 committed by GitHub
parent 42d70d53ac
commit 8e577394fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 38 deletions

View file

@ -38,9 +38,9 @@ RUN GOARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) go build \
-ldflags="-X 'github.com/getAlby/nostr-wallet-connect/version.Tag=$TAG'" \
-o main cmd/http/main.go
RUN cp `find /go/pkg/mod/github.com/breez/ |grep linux-amd64 |grep libbreez_sdk_bindings.so` ./
RUN cp `find /go/pkg/mod/github.com/get\!alby/ | grep x86_64-unknown-linux-gnu | grep libglalby_bindings.so` ./
RUN cp `find /go/pkg/mod/github.com/get\!alby/ | grep x86_64-unknown-linux-gnu | grep libldk_node.so` ./
COPY ./build/docker/copy_dylibs.sh .
RUN chmod +x copy_dylibs.sh
RUN ./copy_dylibs.sh $(echo "$TARGETPLATFORM" | cut -d'/' -f2)
# Start a new, final image to reduce size.
FROM debian as final