From 6c8040f723283894f128398cb7c990ef83762131 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 30 Dec 2023 23:59:00 -0500 Subject: [PATCH] Restore release for serai-node to obtain sane bootup times --- orchestration/serai/Dockerfile | 4 ++-- orchestration/serai/Dockerfile.serai | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/orchestration/serai/Dockerfile b/orchestration/serai/Dockerfile index 48a63fb3..c06205f4 100644 --- a/orchestration/serai/Dockerfile +++ b/orchestration/serai/Dockerfile @@ -48,8 +48,8 @@ RUN --mount=type=cache,target=/root/.cargo \ --mount=type=cache,target=/usr/local/cargo/git \ --mount=type=cache,target=/serai/target \ mkdir /serai/bin && \ - cargo build -p serai-node && \ - mv /serai/target/debug/serai-node /serai/bin + cargo build --release -p serai-node && \ + mv /serai/target/release/serai-node /serai/bin FROM debian:bookworm-slim as image COPY --from=mimalloc libmimalloc.so /usr/lib diff --git a/orchestration/serai/Dockerfile.serai b/orchestration/serai/Dockerfile.serai index 4b68b380..839ec923 100644 --- a/orchestration/serai/Dockerfile.serai +++ b/orchestration/serai/Dockerfile.serai @@ -1,2 +1,2 @@ - cargo build -p serai-node && \ - mv /serai/target/debug/serai-node /serai/bin + cargo build --release -p serai-node && \ + mv /serai/target/release/serai-node /serai/bin