Skip to content

Commit

Permalink
first attempt at a docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
kmulvey committed Aug 20, 2024
1 parent 2268190 commit 94c3289
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.22 AS build-stage

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod download

COPY *.go ./

RUN go build -v -ldflags="-s -w" -o /radeon-exporter ./...


FROM gcr.io/distroless/base-debian12 AS build-release-stage

WORKDIR /

COPY --from=build-stage /radeon-exporter /radeon-exporter

EXPOSE 9200

USER nonroot:nonroot

ENTRYPOINT ["/radeon-exporter"]

0 comments on commit 94c3289

Please sign in to comment.