Skip to content

Commit

Permalink
Move most of the code out of package main
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpherrinm committed Nov 18, 2023
1 parent 5e9c7ff commit 12dc575
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 499 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ COPY go.sum .
RUN go mod download

COPY *.go .
COPY internal internal

ENV CGO_ENABLED=0

RUN GOOS=$TARGETOS GOARCH=$TARGETPLATFORM go build -v -o /go/bin/unbound_exporter ./...
RUN GOOS=$TARGETOS GOARCH=$TARGETPLATFORM go build -v -o /go/bin/unbound_exporter .

FROM gcr.io/distroless/static-debian12

Expand Down
Loading

0 comments on commit 12dc575

Please sign in to comment.