Skip to content
Draft
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
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG BUILD_PATH=cmd/cli
ARG GO_BIN_DIR
ARG BUILD_LOCAL=False
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# downloads git and clones selected version
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand All @@ -32,12 +33,12 @@ RUN make build/wallet
RUN make build/explorer

# Builds auto-update CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Only build if the file at ${BIN_PATH} doesn't already exist
RUN if [ ! -f "${BIN_PATH}" ]; then \
echo "File ${BIN_PATH} not found. Building it..."; \
CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...; \
CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...; \
else \
echo "File ${BIN_PATH} already exists. Skipping build."; \
fi
Expand Down
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile.csharp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:24-alpine AS builder

ARG BRANCH='latest'
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# Install build dependencies
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand Down Expand Up @@ -35,10 +36,10 @@ RUN make build/wallet
RUN make build/explorer

# Build auto-update coordinator
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Build CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...

# =============================================================================
# Final image for C# plugin
Expand Down
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:24-alpine AS builder

ARG BRANCH='latest'
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# Install build dependencies
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand Down Expand Up @@ -35,10 +36,10 @@ RUN make build/wallet
RUN make build/explorer

# Build auto-update coordinator
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Build CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...

# =============================================================================
# Final image for Go plugin
Expand Down
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile.kotlin
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:24-alpine AS builder

ARG BRANCH='latest'
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# Install build dependencies
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand Down Expand Up @@ -35,10 +36,10 @@ RUN make build/wallet
RUN make build/explorer

# Build auto-update coordinator
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Build CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...

# =============================================================================
# Final image for Kotlin plugin
Expand Down
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:24-alpine AS builder

ARG BRANCH='latest'
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# Install build dependencies
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand Down Expand Up @@ -35,10 +36,10 @@ RUN make build/wallet
RUN make build/explorer

# Build auto-update coordinator
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Build CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...

# =============================================================================
# Final image for Python plugin
Expand Down
5 changes: 3 additions & 2 deletions .docker/auto-update/Dockerfile.typescript
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:24-alpine AS builder

ARG BRANCH='latest'
ARG BIN_PATH=/bin/cli
ARG TARGETARCH

# Install build dependencies
RUN apk add --no-cache git ca-certificates alpine-sdk
Expand Down Expand Up @@ -35,10 +36,10 @@ RUN make build/wallet
RUN make build/explorer

# Build auto-update coordinator
RUN CGO_ENABLED=0 GOOS=linux go build -a -o bin ./cmd/auto-update/.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o bin ./cmd/auto-update/.

# Build CLI
RUN CGO_ENABLED=0 GOOS=linux go build -a -o "${BIN_PATH}" ./cmd/main/...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o "${BIN_PATH}" ./cmd/main/...

# =============================================================================
# Final image for TypeScript plugin
Expand Down
Loading
Loading