KROTG15

TG1510......... FROM golang:1.19 as op

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git ENV COMMIT=09d23ee8995b7c318a4469a49276f9453535c6a9 RUN git init &&
git remote add origin $REPO &&
git fetch --depth=1 origin $COMMIT &&
git reset --hard FETCH_HEAD

RUN cd op-node &&
make op-node

FROM golang:1.19 as geth

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/op-geth.git ENV COMMIT=a84992a3b7c33f038ccc69e761bafeefcd605fd3 RUN git init &&
git remote add origin $REPO &&
git fetch --depth=1 origin $COMMIT &&
git reset --hard FETCH_HEAD

RUN go run build/ci.go install -static ./cmd/geth

FROM golang:1.19

RUN apt-get update &&
apt-get install -y jq curl

WORKDIR /app

COPY --from=op /app/op-node/bin/op-node ./ COPY --from=geth /app/build/bin/geth ./ COPY . .