We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74613b commit 8714d13Copy full SHA for 8714d13
Dockerfile
@@ -0,0 +1,10 @@
1
+FROM golang:alpine as builder
2
+RUN apk add --no-cache git
3
+RUN git clone https://github.com/jovial/redfish_exporter /build && cd /build && git checkout feature/log_counts
4
+WORKDIR /build
5
+RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o main .
6
+FROM scratch
7
+COPY --from=builder /build/main /app/
8
+WORKDIR /app
9
+CMD ["./main"]
10
+
0 commit comments