Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add op node #180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions op-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]