diff --git a/Dockerfile b/Dockerfile index 5347f4e4..d533d19d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.76-bullseye AS chef +FROM rust:1.77-bullseye AS chef RUN cargo install cargo-chef WORKDIR /app @@ -19,7 +19,9 @@ RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg- RUN cargo chef cook --profile ${BUILD_PROFILE} --features "$FEATURES" --recipe-path recipe.json COPY . . -RUN cargo build --profile ${BUILD_PROFILE} --features "$FEATURES" --locked --bin mev +ARG RUSTFLAGS="-C target-cpu=native" +ENV RUSTFLAGS "$RUSTFLAGS" +RUN RUSTFLAGS="$RUSTFLAGS" cargo build --profile ${BUILD_PROFILE} --features "$FEATURES" --locked --bin mev RUN cp /app/target/${BUILD_PROFILE}/mev /app/mev