From 0f7736b1e07ed10046df31546bde73970ec74576 Mon Sep 17 00:00:00 2001 From: Carlos Baez Date: Fri, 30 Aug 2024 11:17:14 +0200 Subject: [PATCH] Fixing dockerfile for testing Signed-off-by: Carlos Baez --- docker/sui-node/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/sui-node/Dockerfile b/docker/sui-node/Dockerfile index e9557b7698adc..7ecea2bf86158 100644 --- a/docker/sui-node/Dockerfile +++ b/docker/sui-node/Dockerfile @@ -9,6 +9,11 @@ ENV GIT_REVISION=$GIT_REVISION WORKDIR "$WORKDIR/sui" RUN apt-get update && apt-get install -y cmake clang +COPY root-config /root/ +RUN sed 's|/home/runner|/root|g' -i.bak /root/.ssh/config +ENV CARGO_NET_GIT_FETCH_WITH_CLI=true + + COPY Cargo.toml Cargo.lock ./ COPY consensus consensus COPY crates crates @@ -16,7 +21,7 @@ COPY sui-execution sui-execution COPY narwhal narwhal COPY external-crates external-crates -RUN cargo build --profile ${PROFILE} --bin sui-node +RUN --mount=type=ssh cargo build --profile ${PROFILE} --bin sui-node # Production Image FROM debian:bullseye-slim AS runtime