@@ -13,41 +13,6 @@ RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --singl
1313RUN . /tmp/versions.env && cd op-node && \
1414 just VERSION=$OP_NODE_TAG op-node
1515
16- FROM rust:1.88-trixie AS base-consensus
17-
18- WORKDIR /app
19-
20- COPY versions.env /tmp/versions.env
21-
22- ARG MOLD_VERSION=2.40.4
23- ARG MOLD_SHA256_AARCH64=c799b9ccae8728793da2186718fbe53b76400a9da396184fac0c64aa3298ec37
24- ARG MOLD_SHA256_ARM=d82792748a81202423ddd2496fc8719404fe694493abdef691cc080392ee44bf
25- ARG MOLD_SHA256_X86_64=4c999e19ffa31afa5aa429c679b665d5e2ca5a6b6832ad4b79668e8dcf3d8ec1
26-
27- RUN apt-get update && \
28- apt-get install -y --no-install-recommends \
29- git libclang-dev pkg-config curl build-essential cmake && \
30- rm -rf /var/lib/apt/lists/*
31-
32- RUN set -eux; \
33- case "$(uname -m)" in \
34- x86_64) MOLD_ARCH=x86_64; MOLD_SHA256="${MOLD_SHA256_X86_64}" ;; \
35- aarch64|arm64) MOLD_ARCH=aarch64; MOLD_SHA256="${MOLD_SHA256_AARCH64}" ;; \
36- armv7l|armv6l) MOLD_ARCH=arm; MOLD_SHA256="${MOLD_SHA256_ARM}" ;; \
37- *) echo "unsupported architecture: $(uname -m)" >&2; exit 1 ;; \
38- esac; \
39- curl -fsSL "https://github.com/rui314/mold/releases/download/v${MOLD_VERSION}/mold-${MOLD_VERSION}-${MOLD_ARCH}-linux.tar.gz" -o /tmp/mold.tar.gz; \
40- echo "${MOLD_SHA256} /tmp/mold.tar.gz" | sha256sum -c -; \
41- tar -xzf /tmp/mold.tar.gz -C /tmp; \
42- cp /tmp/mold-${MOLD_VERSION}-${MOLD_ARCH}-linux/bin/* /usr/local/bin/; \
43- rm -rf /tmp/mold*
44-
45- RUN . /tmp/versions.env && git clone $BASE_RETH_NODE_REPO . && \
46- git checkout tags/$BASE_RETH_NODE_TAG && \
47- bash -c '[ "$(git rev-parse HEAD)" = "$BASE_RETH_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
48-
49- RUN cargo build --bin base-consensus --profile maxperf
50-
5116FROM mcr.microsoft.com/dotnet/sdk:10.0-noble AS build
5217
5318ARG BUILD_CONFIG=release
@@ -78,11 +43,9 @@ WORKDIR /app
7843
7944COPY --from=build /publish ./
8045COPY --from=op /app/op-node/bin/op-node ./
81- COPY --from=base-consensus /app/target/maxperf/base-consensus ./
8246COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
8347COPY nethermind/nethermind-entrypoint ./execution-entrypoint
8448COPY op-node-entrypoint .
85- COPY base-consensus-entrypoint .
8649COPY consensus-entrypoint .
8750
8851CMD ["/usr/bin/supervisord" ]
0 commit comments