Skip to content

Commit

Permalink
change location of binary
Browse files Browse the repository at this point in the history
  • Loading branch information
terjesannum committed Dec 10, 2023
1 parent 465e106 commit 054b972
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/bin/
/tibber-exporter
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ EXPOSE 8080

COPY --from=builder /tmp/passwd /tmp/group /etc/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /workspace/bin/tibber-exporter .
COPY --from=builder /workspace/tibber-exporter .

USER 65532:65532

Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build: deps
CGO_ENABLED=0 go build -o bin/tibber-exporter \
CGO_ENABLED=0 go build -o tibber-exporter \
-ldflags " \
-X github.com/prometheus/common/version.BuildUser=$(shell id -un) \
-X github.com/prometheus/common/version.Branch=$(shell git rev-parse --abbrev-ref HEAD) \
Expand All @@ -9,4 +9,3 @@ build: deps
"
deps:
go mod download

0 comments on commit 054b972

Please sign in to comment.