File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed
Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1+ FROM --platform=linux/amd64 golang:1.23 as builder
2+
3+ WORKDIR /app
4+
5+ COPY . .
6+ RUN go env -w GOPROXY=https://goproxy.cn,direct
7+ # RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build ./cmd/shisui/main.go
8+ RUN make shisui
9+
10+
11+ FROM --platform=linux/amd64 ubuntu:22.04
12+
13+ COPY --from=builder /app/build/bin/shisui /usr/local/bin/app
14+
15+ EXPOSE 8545 9009/udp
16+
17+ ENTRYPOINT [ "app" ]
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ shisui:
2121
2222# ? shisui-image: Build shisui image
2323shisui-image :
24- docker build -t ghcr.io/optimism-java/shisui:latest -f Dockerfile.portal .
24+ docker build -t ghcr.io/optimism-java/shisui:latest -f Dockerfile .
2525
2626# ? fmt: Ensure consistent code formatting.
2727fmt :
Original file line number Diff line number Diff line change 2222package version
2323
2424import (
25- "fmt"
2625 "runtime/debug"
2726 "time"
2827)
@@ -47,9 +46,6 @@ type VCSInfo struct {
4746
4847// VCS returns version control information of the current executable.
4948func VCS () (VCSInfo , bool ) {
50- fmt .Println ("vcs" )
51- fmt .Println (gitCommit )
52- fmt .Println (gitDate )
5349 if gitCommit != "" {
5450 // Use information set by the build script if present.
5551 return VCSInfo {Commit : gitCommit , Date : gitDate }, true
Original file line number Diff line number Diff line change 1- package ethpepple
1+ package pepple
22
33import (
44 "bytes"
Original file line number Diff line number Diff line change 1- package ethpepple
1+ package pepple
22
33import (
44 "testing"
You can’t perform that action at this time.
0 commit comments