From a201d33edceacf8c1687f4dce9e94230f25be064 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 24 Mar 2022 13:27:14 +0200 Subject: [PATCH] Properly print cachepot stats --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3bc1039129..5e55cd834f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,9 @@ ENV RUSTC_WRAPPER /usr/local/cargo/bin/cachepot COPY --from=pg-build /pg/tmp_install/include/postgresql/server tmp_install/include/postgresql/server COPY . . -RUN cargo build --release -# Show build caching stats to check if it was used -RUN /usr/local/cargo/bin/cachepot -s +# Show build caching stats to check if it was used in the end. +# Has to be the part of the same RUN since cachepot daemon is killed in the end of this RUN, loosing the compilation stats. +RUN cargo build --release && /usr/local/cargo/bin/cachepot -s # Build final image #