FROM golang:1.22 AS op WORKDIR /app ENV REPO=https://github.com/ethereum-optimism/optimism.git ENV VERSION=v1.10.2 ENV COMMIT=8bf7ff60f34a7c5082cec5c56bed1f76cc1893ad RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \ git switch -c branch-$VERSION && \ bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]' # Install 'just' RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin RUN cd op-node && \ make VERSION=$VERSION op-node FROM golang:1.22 AS geth WORKDIR /app RUN apt-get update && \ apt-get install -y \ build-essential ENV REPO=https://github.com/ethereum-optimism/op-geth.git ENV VERSION=v1.101411.6 ENV COMMIT=50b3422b9ac682a8fa503c4f409339a9bff69717 RUN git clone $REPO --branch $VERSION --single-branch . && \ git switch -c branch-$VERSION && \ bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]' RUN go run build/ci.go install -static ./cmd/geth FROM ubuntu:22.04 RUN apt-get update && \ apt-get install -y jq curl supervisor && \ rm -rf /var/lib/apt/lists RUN mkdir -p /var/log/supervisor WORKDIR /app COPY --from=op /app/op-node/bin/op-node ./ COPY --from=geth /app/build/bin/geth ./ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY geth/geth-entrypoint ./execution-entrypoint COPY op-node-entrypoint . CMD ["/usr/bin/supervisord"]