tilt: smaller sui image

This commit is contained in:
Evan Gray 2024-12-10 22:37:55 -05:00 committed by Evan Gray
parent e9b080b95f
commit 4a139655a3
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
FROM cli-gen AS cli-export
FROM const-gen AS const-export
FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:ad490b9c8c237b6b44d84feacfa45df3d0adeef55fcbec9586c0d9951e3dce95 AS sui
FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:97e2e62d43262883b7a5bed5c9a9dd83d766a00a9476473eb275948fb53d376e AS sui
# initial run
# COPY sui/devnet/genesis_config genesis_config

View File

@ -1,6 +1,4 @@
FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-node
WORKDIR /tmp
FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-build
# https://github.com/MystenLabs/sui/blob/041c5f2bae2fe52079e44b70514333532d69f4e6/docs/content/guides/developer/getting-started/sui-install.mdx#all-linux-prerequisites
RUN apt-get update && apt-get install -y curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential
@ -8,7 +6,13 @@ RUN apt-get update && apt-get install -y curl git-all cmake gcc libssl-dev pkg-c
# https://github.com/MystenLabs/sui/releases/tag/mainnet-v1.19.1
RUN cargo install --locked --git https://github.com/MystenLabs/sui.git --rev 041c5f2bae2fe52079e44b70514333532d69f4e6 sui
RUN apt-get install -y ca-certificates gnupg
FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-node
WORKDIR /tmp
COPY --from=sui-build /usr/local/cargo/bin/sui /bin/sui
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg