Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Adding config and docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
kant committed Oct 2, 2023
1 parent 67f6441 commit d8f40e2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# --- Build Stage ---
FROM golang:1.21.1 AS builder

# Set the current working directory inside the container
WORKDIR /app

# Copy go mod and sum files
COPY go.mod go.sum ./

# Download all dependencies
RUN go mod download

# Copy the entire directory to the container
COPY . .

# Build the application
RUN CGO_ENABLED=0 GOOS=linux go build -o mev-commit ./cmd/main.go

# --- Production Stage ---
FROM alpine:latest

# Copy the binary from the builder stage
COPY --from=builder /app/mev-commit /mev-commit

EXPOSE 13522 13523

CMD ["/mev-commit"]

9 changes: 9 additions & 0 deletions config/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
priv_key_file: ~/.mev-commit/keys/node1
peer_type: builder
p2p_port: 13524
http_port: 13525
secret: hello
log_fmt: text
log_level: debug
bootnodes:
- /ip4/localhost/tcp/13522/p2p/26Uiu2HAm1T4Pc777L6VerTUXMDS5VcHmBrAW4EUKjH5EXoRtB9Ft

This comment has been minimized.

Copy link
@aloknerurkar

aloknerurkar Oct 2, 2023

Contributor

This might not help as users would have to set this up. Maybe we can setup 1 bootnode ec2 instance with static IP and use it here?

0 comments on commit d8f40e2

Please sign in to comment.