FROM golang:1.22 AS op WORKDIR /app ENV REPO=https://github.com/ethereum-optimism/optimism.git ENV VERSION=v1.13.2 ENV COMMIT=c8b9f62736a7dad7e569719a84c406605f4472e6 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.101503.4 ENV COMMIT=2b9abb39077cb88f6e8a513f09a5ea2c2569dfed 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"]