@@ -22,14 +22,31 @@ WORKDIR /app
2222RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential
2323
2424ENV REPO=https://github.com/paradigmxyz/reth.git
25- ENV VERSION=v1.3.11
26- ENV COMMIT=e0e85aa10b98fa92d32c3e820c7ed2cee0b02931
25+ ENV VERSION=v1.3.12
26+ ENV COMMIT=6f8e7258f4733279080e4bd8345ce50538a40d6e
2727RUN git clone $REPO --branch $VERSION --single-branch . && \
2828 git switch -c branch-$VERSION && \
2929 bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
3030
3131RUN cargo build --bin op-reth --profile maxperf --manifest-path crates/optimism/bin/Cargo.toml
3232
33+ FROM rust:1.85 AS reth-base
34+
35+ WORKDIR /app
36+
37+ RUN apt-get update && apt-get -y upgrade && \
38+ apt-get install -y git libclang-dev pkg-config curl build-essential && \
39+ rm -rf /var/lib/apt/lists/*
40+
41+ ENV REPO=https://github.com/base/node-reth.git
42+ ENV VERSION=main
43+ ENV COMMIT=c23179dc3531a988e483b05d306539cca99f9a5c
44+ RUN git clone $REPO --branch $VERSION --single-branch . && \
45+ git switch -c branch-$VERSION && \
46+ bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
47+
48+ RUN cargo build --bin base-reth-node --release
49+
3350FROM ubuntu:22.04
3451
3552RUN apt-get update && \
@@ -41,6 +58,7 @@ WORKDIR /app
4158
4259COPY --from=op /app/op-node/bin/op-node ./
4360COPY --from=reth /app/target/maxperf/op-reth ./
61+ COPY --from=reth-base /app/target/release/base-reth-node ./
4462COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
4563COPY ./reth/reth-entrypoint ./execution-entrypoint
4664COPY op-node-entrypoint .
0 commit comments