From 8280590eaf32958ed1ef0a6ad0c75eb2d822bf24 Mon Sep 17 00:00:00 2001 From: KagChi <59391215+KagChi@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:49:30 +0000 Subject: [PATCH] chore: update --- Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8d2835..aeda193 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,21 +23,14 @@ COPY .cargo ./.cargo/ RUN mkdir src/ && echo 'fn main() {}' > ./src/main.rs # Step 6: Build the project -RUN if [ "$SIMD" == '0' ]; then \ - cargo build --release --no-default-features --features no-simd; \ - else \ - cargo build --release; \ - fi +RUN cargo build --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 if [ "$TARGET_CPU" == 'x86-64' ]; then \ - cargo build --release --no-default-features --features no-simd; \ - else \ - cargo build --release; \ +RUN cargo build --release; \ fi && \ cp target/release/gateway-proxy /gateway-proxy && \ strip /gateway-proxy