Skip to content

Commit

Permalink
ensure version reported from a Docker container is always set (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook authored Aug 20, 2023
1 parent 8093a0c commit 134cf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apk add --no-cache git

# build as PIE to take advantage of exploit mitigations
ARG CGO_ENABLED=0
ARG VERSION
ARG VERSION=devel
RUN go build -buildmode=pie -buildvcs=true -ldflags "-s -w -X main.version=${VERSION}" -trimpath -o go-project-template

# pie-loader is built and scanned daily, we want the most recent version
Expand Down

0 comments on commit 134cf34

Please sign in to comment.