Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first attempt at a docker image
Browse files Browse the repository at this point in the history
kmulvey committed Aug 20, 2024
1 parent b61d543 commit 30c6b82
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 30c6b82

Please sign in to comment.