File tree 5 files changed +20
-7
lines changed
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:
21
21
22
22
# ? shisui-image: Build shisui image
23
23
shisui-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 .
25
25
26
26
# ? fmt: Ensure consistent code formatting.
27
27
fmt :
Original file line number Diff line number Diff line change 22
22
package version
23
23
24
24
import (
25
- "fmt"
26
25
"runtime/debug"
27
26
"time"
28
27
)
@@ -47,9 +46,6 @@ type VCSInfo struct {
47
46
48
47
// VCS returns version control information of the current executable.
49
48
func VCS () (VCSInfo , bool ) {
50
- fmt .Println ("vcs" )
51
- fmt .Println (gitCommit )
52
- fmt .Println (gitDate )
53
49
if gitCommit != "" {
54
50
// Use information set by the build script if present.
55
51
return VCSInfo {Commit : gitCommit , Date : gitDate }, true
Original file line number Diff line number Diff line change 1
- package ethpepple
1
+ package pepple
2
2
3
3
import (
4
4
"bytes"
Original file line number Diff line number Diff line change 1
- package ethpepple
1
+ package pepple
2
2
3
3
import (
4
4
"testing"
You can’t perform that action at this time.
0 commit comments