From 2352300f163310e3a59531ed8fce63a2de3837af Mon Sep 17 00:00:00 2001 From: KagChi <59391215+KagChi@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:52:22 +0000 Subject: [PATCH] chore: update --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aeda193..eca9473 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,14 +23,14 @@ COPY .cargo ./.cargo/ RUN mkdir src/ && echo 'fn main() {}' > ./src/main.rs # Step 6: Build the project -RUN cargo build --release; +RUN cargo build --target=aarch64-unknown-linux-gnu --release; # Step 7: Clean up and prepare for the final build RUN rm -f target/release/deps/gateway_proxy* COPY ./src ./src # Step 8: Final build -RUN cargo build --release; \ +RUN cargo build --target=aarch64-unknown-linux-gnu --release; \ fi && \ cp target/release/gateway-proxy /gateway-proxy && \ strip /gateway-proxy