From 49cec498441a1f217787c2af7b4876a5a3c2b903 Mon Sep 17 00:00:00 2001 From: kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:19:27 +0530 Subject: [PATCH] statically build gpu binaries --- service_gpu.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service_gpu.Dockerfile b/service_gpu.Dockerfile index b19282450e..34358282d5 100644 --- a/service_gpu.Dockerfile +++ b/service_gpu.Dockerfile @@ -96,19 +96,19 @@ RUN pwd RUN du -hsc * | sort -hr # Build all the binaries that run on GPU, including "dummy-service". -RUN SQLX_OFFLINE=true \ +RUN RUSTFLAGS="-C target-feature=+crt-static" SQLX_OFFLINE=true \ LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH} \ $HOME/.cargo/bin/cargo build \ --release \ --bin dummy-service -RUN SQLX_OFFLINE=true \ +RUN RUSTFLAGS="-C target-feature=+crt-static" SQLX_OFFLINE=true \ LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH} \ $HOME/.cargo/bin/cargo build \ --release \ --bin download-job -RUN SQLX_OFFLINE=true \ +RUN RUSTFLAGS="-C target-feature=+crt-static" SQLX_OFFLINE=true \ LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH} \ $HOME/.cargo/bin/cargo build \ --release \