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