@@ -2,21 +2,23 @@ FROM golang:1.23 AS op
22
33WORKDIR /app
44
5+ ENV CGO_ENABLED=0
56ENV OP_REPO=https://github.com/ethereum-optimism/optimism.git
6- ENV OP_VERSION=${OP_VERSION:-v1.10 .0}
7+ ENV OP_VERSION=${OP_VERSION:-v1.11 .0}
78
8- RUN git clone $OP_REPO --depth 1 --branch op-node/$OP_VERSION --single-branch . && \
9- git switch -c branch-$OP_VERSION && \
10- make -C op-node VERSION=$OP_VERSION op-node && \
11- make -C op-batcher VERSION=$OP_VERSION op-batcher && \
12- make -C op-proposer VERSION=$OP_VERSION op-proposer
9+ RUN git clone $OP_REPO --depth 1 --branch op-node/$OP_VERSION --single-branch ./optimism && \
10+ cd optimism && git switch -c branch-$OP_VERSION && \
11+ git submodule sync --recursive && git submodule update --init --recursive && \
12+ go build -o /app/op-node ./op-node/cmd/main.go && \
13+ go build -o /app/op-batcher ./op-batcher/cmd/main.go && \
14+ go build -o /app/op-proposer ./op-proposer/cmd/main.go
1315
14- FROM golang:1.22 AS geth
16+ FROM golang:1.23 AS geth
1517
1618WORKDIR /app
1719
1820ENV GETH_REPO=https://github.com/ethereum-optimism/op-geth.git
19- ENV GETH_VERSION=${GETH_VERSION:-v1.101411.2 }
21+ ENV GETH_VERSION=${GETH_VERSION:-v1.101500.0 }
2022
2123RUN git clone $GETH_REPO --depth 1 --branch $GETH_VERSION --single-branch . && \
2224 git switch -c branch-$GETH_VERSION && \
@@ -33,7 +35,7 @@ RUN apt-get update && \
3335 apt-get install -y sudo jq curl wget lz4 && \
3436 rm -rf /var/lib/apt/lists
3537
36- COPY --from=op /app/op-node/bin/op-node ./
37- COPY --from=op /app/op-batcher/bin/op-batcher ./
38- COPY --from=op /app/op-proposer/bin/op-proposer ./
38+ COPY --from=op /app/op-node ./
39+ COPY --from=op /app/op-batcher ./
40+ COPY --from=op /app/op-proposer ./
3941COPY --from=geth /app/build/bin/geth ./
0 commit comments