diff --git a/config.yaml b/config.yaml index ed3775a..0a6acd6 100644 --- a/config.yaml +++ b/config.yaml @@ -494,3 +494,13 @@ target: tag: main-minimal repository: ethpandaops/mev-rs +############# +# op-node # +############# +- source: + repository: ethereum-optimism/op-node + ref: develop + target: + tag: develop + repository: ethpandaops/op-node + dockerfile: ./op-node/Dockerfile \ No newline at end of file diff --git a/op-node/Dockerfile b/op-node/Dockerfile new file mode 100644 index 0000000..e4c3a97 --- /dev/null +++ b/op-node/Dockerfile @@ -0,0 +1,26 @@ +# Use the official Golang image as the base image +FROM golang:1.21-alpine AS builder + +# Set the working directory inside the container +WORKDIR /app + +# Install git and other dependencies +RUN apk update && apk add --no-cache git make + +# Copy the rest of the application source code +COPY . . + +# Build the op-node binary +RUN cd op-node && make op-node + +# Use a minimal image for the runtime environment +FROM alpine:latest + +# Set the working directory inside the container +WORKDIR /app + +# Copy the binary from the builder stage +COPY --from=builder /app/op-node/bin/op-node /usr/local/bin/op-node + +# Set the entrypoint to the built binary +ENTRYPOINT ["op-node"] \ No newline at end of file