Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gtk): last block height icon #1607

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
FROM golang:1.23.3-alpine3.19 as builder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this file has changed?


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
Expand Down
2 changes: 1 addition & 1 deletion cmd/gtk/assets/ui/widget_node.ui
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<property name="valign">start</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">🥡 Last Block Height:</property>
<property name="label" translatable="yes">⛓️ Last Block Height:</property>
</object>
<packing>
<property name="left-attach">0</property>
Expand Down
Loading