From 7f740c1604c456ecb2735ae6f556ef6c09a526fc Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Mon, 13 May 2024 18:51:45 +0300 Subject: [PATCH] add missing content for docker CI --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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