Skip to content

Commit

Permalink
fix: Docker build version.
Browse files Browse the repository at this point in the history
  • Loading branch information
n6g7 committed Jan 19, 2024
1 parent 9b8606d commit b2ef900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git
.github
.vscode
dev.env
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY . .
RUN CGO_ENABLED=0 go build \
-mod=readonly \
-trimpath \
-ldflags "-s -w -X github.com/n6g7/bingo/cmd/bingo.version=$version" \
-ldflags "-s -w -X github.com/n6g7/nomtail/pkg/version.version=$version" \
./cmd/bingo

FROM alpine:3.17
Expand Down

0 comments on commit b2ef900

Please sign in to comment.