From ed401d179f215b33d5b41c2ce9fdae2b3a0b90a7 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:32:58 +0100 Subject: [PATCH] chore: optimize build --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0236a9e20e5..568e232cc6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -131,9 +131,6 @@ RUN if [[ "$TARGETARCH" == "arm64" ]] ; then export PROTOC_ARCH=aarch_64; else e # Switch to clang RUN rm /usr/bin/cc && ln -s /usr/bin/clang /usr/bin/cc -# Select whether we want dev or release -ONBUILD ARG CARGO_BUILD_PROFILE=dev - ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} @@ -326,6 +323,10 @@ RUN --mount=type=secret,id=AWS \ --no-track \ --no-confirm + +# Select whether we want dev or release +ONBUILD ARG CARGO_BUILD_PROFILE=dev + # # Rust build planner to speed up builds #