diff --git a/cmd/shfmt/Dockerfile b/cmd/shfmt/Dockerfile index f41f768ed..9dd86dd52 100644 --- a/cmd/shfmt/Dockerfile +++ b/cmd/shfmt/Dockerfile @@ -3,7 +3,7 @@ FROM golang:1.18.2-alpine AS build WORKDIR /src RUN apk add --no-cache git COPY . . -RUN CGO_ENABLED=0 go build -ldflags "-w -s -extldflags '-static' -X main.knownVersion=$(git describe --always --dirty --tags)" ./cmd/shfmt +RUN CGO_ENABLED=0 go build -ldflags "-w -s -extldflags '-static' -X main.version=$(git describe --always --dirty --tags)" ./cmd/shfmt FROM alpine:3.15.4 AS alpine COPY --from=build /src/shfmt /bin/shfmt