fixturenet-optimism-stack/container-build/cerc-optimism-op-batcher/Dockerfile
Adwait Gharpure 963b989457
Upgrade Optimism to latest release (#1)
* Update optimism contracts script

* Add l2-config-generation service to compose file

* Pass flag to op-node for lighthouse beacon API endpoint

* Remove command to copy op-bindings from Dockerfiles in container-build directory

* Remove unnecessary commands

* Retrieve L1 chain id from env in compose file

* Add missing $

* Check if config files already exist

* Return if both config outfiles exist
2024-07-18 20:27:06 +05:30

32 lines
679 B
Docker

FROM golang:1.21.0-alpine3.18 as builder
ARG VERSION=v0.0.0
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
# build op-batcher with the shared go.mod & go.sum files
COPY ./op-batcher /app/op-batcher
COPY ./op-node /app/op-node
COPY ./op-service /app/op-service
COPY ./op-plasma /app/op-plasma
COPY ./go.mod /app/go.mod
COPY ./go.sum /app/go.sum
COPY ./.git /app/.git
WORKDIR /app/op-batcher
RUN go mod download
ARG TARGETOS TARGETARCH
RUN make op-batcher VERSION="$VERSION" GOOS=$TARGETOS GOARCH=$TARGETARCH
FROM alpine:3.18
RUN apk add --no-cache jq bash
COPY --from=builder /app/op-batcher/bin/op-batcher /usr/local/bin
ENTRYPOINT ["op-batcher"]