From 380665d33ee1ed45798ce448c4aa4335c5890512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kj=C3=A6r?= Date: Mon, 13 Nov 2023 18:46:56 +0100 Subject: [PATCH] Remove binary from correct location --- lambda-directly-optimized/.cargo/config.toml | 2 -- lambda-directly-optimized/Dockerfile-arm-graviton-size | 1 + lambda-directly-optimized/Dockerfile-arm-graviton-speed | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda-directly-optimized/.cargo/config.toml b/lambda-directly-optimized/.cargo/config.toml index ab6d5e6..a1c40d3 100644 --- a/lambda-directly-optimized/.cargo/config.toml +++ b/lambda-directly-optimized/.cargo/config.toml @@ -1,7 +1,5 @@ [target.x86_64-unknown-linux-gnu] rustflags = [ - # Remove location details from panics to reduce size. - "-Zlocation-detail=none", # Enable parallel compiler Frontend for compilation speedup. "-Zthreads=8", ] diff --git a/lambda-directly-optimized/Dockerfile-arm-graviton-size b/lambda-directly-optimized/Dockerfile-arm-graviton-size index c8ffbc2..3fe3d3e 100644 --- a/lambda-directly-optimized/Dockerfile-arm-graviton-size +++ b/lambda-directly-optimized/Dockerfile-arm-graviton-size @@ -46,6 +46,7 @@ RUN export PATH="$HOME/.cargo/bin:$PATH"; \ rm -r src; \ # Delete the previously generated build artifacts. rm -r target/$TARGET/release/deps/apollo_router_lambda*; \ + rm -r target/$TARGET/release-size/deps/apollo_router_lambda*; \ rm target/lambda/apollo-router-lambda/bootstrap # Copy our actual application code and build this. diff --git a/lambda-directly-optimized/Dockerfile-arm-graviton-speed b/lambda-directly-optimized/Dockerfile-arm-graviton-speed index 46f0664..a98e6df 100644 --- a/lambda-directly-optimized/Dockerfile-arm-graviton-speed +++ b/lambda-directly-optimized/Dockerfile-arm-graviton-speed @@ -46,6 +46,7 @@ RUN export PATH="$HOME/.cargo/bin:$PATH"; \ rm -r src; \ # Delete the previously generated build artifacts. rm -r target/$TARGET/release/deps/apollo_router_lambda*; \ + rm -r target/$TARGET/release-speed/deps/apollo_router_lambda*; \ rm target/lambda/apollo-router-lambda/bootstrap # Copy our actual application code and build this.