File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1- FROM golang:rc-bullseye AS builder
1+ FROM golang:1.21 AS builder
22
33LABEL maintainer="Jennings Liu <jenningsloy318@gmail.com>"
44
55ARG ARCH=amd64
66
7- ENV GOROOT /usr/local/go
8- ENV GOPATH /go
9- ENV PATH "$GOROOT/bin:$GOPATH/bin:$PATH"
10- ENV GO_VERSION 1.15.2
11- ENV GO111MODULE=on
12-
13-
14- # Build dependencies
7+ # Build binary
158RUN mkdir -p /go/src/github.com/ && \
16- git clone -b stackhpc https://github.com/stackhpc/redfish_exporter /go/src/github.com/stackhpc/redfish_exporter && \
9+ git clone https://github.com/stackhpc/redfish_exporter /go/src/github.com/stackhpc/redfish_exporter && \
1710 cd /go/src/github.com/stackhpc/redfish_exporter && \
11+ git checkout d963088baa0fd477878d7263d15f8507624c3172 && \
1812 make build
1913
20- FROM golang:rc-bullseye
14+ FROM golang:1.21
2115
2216COPY --from=builder /go/src/github.com/stackhpc/redfish_exporter/build/redfish_exporter /usr/local/bin/redfish_exporter
2317RUN mkdir /etc/prometheus
You can’t perform that action at this time.
0 commit comments