This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kant
committed
Oct 2, 2023
1 parent
67f6441
commit d8f40e2
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
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?