Skip to content

Commit

Permalink
wget libbreez_sdk_bindings and copy it into final
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Jan 19, 2024
1 parent a6ee207 commit 3486f03
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as frontend
FROM node:19-alpine as frontend
WORKDIR /build
COPY frontend ./frontend
RUN cd frontend && yarn install && yarn build
Expand Down Expand Up @@ -28,17 +28,18 @@ COPY --from=frontend /build/frontend/dist ./frontend/dist

RUN go build -o main .

# Start a new, final image to reduce size.
#FROM alpine as final
RUN wget https://github.com/breez/breez-sdk-go/raw/main/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so

#RUN apk add libc6-compat
# Start a new, final image to reduce size.
FROM debian as final

# FROM gcr.io/distroless/static-debian11

# USER small-user:small-user
ENV LD_LIBRARY_PATH=/usr/lib/libbreez

# Copy the binaries and entrypoint from the builder image.
# COPY --from=builder /build/main /bin/
#
# # Copy the binaries and entrypoint from the builder image.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/libbreez_sdk_bindings.so /usr/lib/libbreez/
COPY --from=builder /build/main /bin/

ENTRYPOINT [ "/build/main" ]
#ENTRYPOINT ["/bin/sh","-c","sleep infinity"]
ENTRYPOINT [ "/bin/main" ]

0 comments on commit 3486f03

Please sign in to comment.