From e67a2f40db3c68d879ec723c7a73d3ba27f4099b Mon Sep 17 00:00:00 2001 From: Joe Hrbek <123987499+suiwombat@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:28:20 -0500 Subject: [PATCH] [sui-proxy/dockerfile] (#19717) ## Description add a sui-proxy dockerfile ## Test Plan tsia --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- docker/sui-proxy/Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docker/sui-proxy/Dockerfile diff --git a/docker/sui-proxy/Dockerfile b/docker/sui-proxy/Dockerfile new file mode 100644 index 0000000000000..0347618ff62f3 --- /dev/null +++ b/docker/sui-proxy/Dockerfile @@ -0,0 +1,20 @@ +FROM rust:1.81-bullseye as build + +ARG PROFILE=release +WORKDIR /work + +RUN apt-get update && apt-get install -y cmake clang + +COPY .git/ .git/ +COPY Cargo.toml Cargo.lock ./ +COPY consensus consensus +COPY crates crates +COPY sui-execution sui-execution +COPY narwhal narwhal +COPY external-crates external-crates + +RUN cargo build --profile ${PROFILE} --bin sui-proxy + +FROM gcr.io/distroless/cc-debian12 as deploy + +COPY --from=build --chmod=755 /work/target/release/sui-proxy /opt/sui/bin/sui-proxy