Skip to content

Commit

Permalink
Merge pull request #219 from ralexstokes/docker-file
Browse files Browse the repository at this point in the history
update dockerfile so build works
  • Loading branch information
ralexstokes authored Apr 26, 2024
2 parents f99371b + 418f105 commit 52993dc
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.67-bullseye AS chef
FROM rust:1.76-bullseye AS chef
RUN cargo install cargo-chef
WORKDIR /app

Expand All @@ -8,13 +8,24 @@ RUN cargo chef prepare --recipe-path recipe.json

FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json

ARG BUILD_PROFILE=release
ENV BUILD_PROFILE ${BUILD_PROFILE}

RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config

RUN cargo chef cook --profile ${BUILD_PROFILE} --recipe-path recipe.json

COPY . .
RUN cargo build --release
RUN cargo build --profile ${BUILD_PROFILE} --locked --bin mev

RUN cp /app/target/${BUILD_PROFILE}/mev /app/mev

FROM debian:bullseye-slim
WORKDIR /app

EXPOSE 18550
EXPOSE 28545
COPY --from=builder /app/target/release/mev /usr/local/bin

ENTRYPOINT [ "/usr/local/bin/mev" ]

0 comments on commit 52993dc

Please sign in to comment.