Skip to content

Commit

Permalink
Fixed dockerfile ldflags.
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 committed Mar 8, 2022
1 parent 007fac2 commit 9444579
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ COPY go.* ./
RUN go mod download

COPY . ./
RUN go build -o ./k3supdater . \
-X github.com/cguertin14/k3supdater/cmd.BuildDate=${BUILD_DATE} \
-X github.com/cguertin14/k3supdater/cmd.GitCommit=${GIT_COMMIT} \
-X github.com/cguertin14/k3supdater/cmd.Version=${VERSION}
RUN go build \
-ldflags "-X github.com/cguertin14/k3supdater/cmd.BuildDate=${BUILD_DATE}" \
-ldflags "-X github.com/cguertin14/k3supdater/cmd.GitCommit=${GIT_COMMIT}" \
-ldflags "-X github.com/cguertin14/k3supdater/cmd.Version=${VERSION}" \
-o ./k3supdater .

# Add user & group
RUN addgroup -S updater-group && \
Expand Down

0 comments on commit 9444579

Please sign in to comment.