Skip to content

Commit

Permalink
Merge pull request #22 from NordSecurity/matislovas/fix_uniffi_image
Browse files Browse the repository at this point in the history
Fix uniffi binaries not appearing in linux image
  • Loading branch information
matislovas authored May 23, 2024
2 parents 0e75fef + 8f3fa13 commit bdea1ab
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions builders/build-linux-rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
FROM ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8

COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-cs /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-go /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-cpp /bin

FROM rust:1.77.2-bullseye

ARG REVISION
Expand All @@ -14,6 +7,11 @@ LABEL org.opencontainers.image.description="Linux Rust builder image"
LABEL org.opencontainers.image.licenses=GPL-3.0
LABEL org.opencontainers.image.revision=$REVISION

COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-cs /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-go /bin
COPY --from=ghcr.io/nordsecurity/uniffi-generators:v0.25.0-8 /bin/uniffi-bindgen-cpp /bin

RUN set -eux; \
export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
Expand Down

0 comments on commit bdea1ab

Please sign in to comment.