Skip to content

Commit

Permalink
include binary version var as double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
randygrok committed Jul 8, 2024
1 parent 9ca52dc commit 9132caf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ COPY go.sum .

RUN go mod download

RUN GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false go build -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=sim -X github.com/cosmos/cosmos-sdk/version.AppName=simd -X github.com/cosmos/cosmos-sdk/version.Version= -X github.com/cosmos/cosmos-sdk/version.Commit=$BINARY_VERSION -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -w -s' -trimpath -o /go/build/ ./...
RUN GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false go build -mod=readonly -tags "netgo ledger" \
-ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=sim \
-X github.com/cosmos/cosmos-sdk/version.AppName=simd \
-X github.com/cosmos/cosmos-sdk/version.Version=$BINARY_VERSION \
-X github.com/cosmos/cosmos-sdk/version.Commit= \
-X 'github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger,' -w -s" \
-trimpath -o /go/build/ ./...

FROM alpine:3.18

Expand Down

0 comments on commit 9132caf

Please sign in to comment.