diff --git a/Dockerfile b/Dockerfile index 8785d8845..064ee80cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,20 @@ FROM golang:1.23.3-alpine3.19 as builder -RUN apk add --no-cache git gmp-dev build-base g++ openssl-dev -ADD . /pactus +WORKDIR /pactus -# Building pactus-daemon -RUN cd /pactus && \ - CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-daemon ./cmd/daemon && \ - CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-wallet ./cmd/wallet && \ - CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-shell ./cmd/shell +# Install dependencies +RUN apk add --no-cache git gmp-dev build-base openssl-dev +# Copy source code +COPY . . -## Copy binary files from builder into second container -FROM alpine:3.19 +# Build pactus-daemon, pactus-wallet, and pactus-shell +RUN GOOS={$TARGETOS} GOARCH={$TARGETARCH} CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-daemon ./cmd/daemon && \ + GOOS={$TARGETOS} GOARCH={$TARGETARCH} CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-wallet ./cmd/wallet && \ + GOOS={$TARGETOS} GOARCH={$TARGETARCH} CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o ./build/pactus-shell ./cmd/shell + +# Final stage +FROM alpine:${ALPINE_VERSION} COPY --from=builder /pactus/build/pactus-daemon /usr/bin COPY --from=builder /pactus/build/pactus-wallet /usr/bin diff --git a/cmd/gtk/assets/ui/widget_node.ui b/cmd/gtk/assets/ui/widget_node.ui index 39b205ada..5380aee2b 100644 --- a/cmd/gtk/assets/ui/widget_node.ui +++ b/cmd/gtk/assets/ui/widget_node.ui @@ -100,7 +100,7 @@ start True True - 🥡 Last Block Height: + ⛓️ Last Block Height: 0