ARG RUST_VERSION=1.76.0 FROM scratch AS base ENV NETWORK=mainnet ENV VERSION=1.17.3 # https://codeload.github.com/MystenLabs/sui/zip/refs/tags/mainnet-v1.17.3 ENV SRC_SITE=https://codeload.github.com/MystenLabs/sui/tar.gz/refs/tags ENV SRC_HASH=0ca2c1480c33b24849ee1fb95f70999aed2c68450c4f6ffac253eefaa91a82ed FROM base AS fetch ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE}/${NETWORK}-v${VERSION} sui.tar.gz FROM stagex/rust:${RUST_VERSION} AS rust FROM fetch AS rust-fetch COPY --from=stagex/busybox . / COPY --from=stagex/musl . / COPY --from=rust . / COPY --from=stagex/gcc . / COPY --from=stagex/llvm . / COPY --from=stagex/libunwind . / COPY --from=stagex/openssl . / COPY --from=stagex/zlib . / # NOTE: Necessary for `cargo fetch`, but CA trust is not relied upon COPY --from=stagex/ca-certificates . / # HACK: gcc puts things in /usr/lib64 COPY --from=stagex/gcc /usr/lib64/* /usr/lib/ RUN --network=none <