Skip to content

Commit

Permalink
Merge pull request #261 from ralexstokes/docker-ci-trailer
Browse files Browse the repository at this point in the history
add missing content for docker CI
  • Loading branch information
ralexstokes authored May 13, 2024
2 parents 4b20e51 + 7f740c1 commit 5b3c35c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit 5b3c35c

Please sign in to comment.