File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM docker.io/library/centos:8 AS builder
1
+ FROM golang:rc-bullseye AS builder
2
2
3
3
LABEL maintainer=
"Jennings Liu <[email protected] >"
4
4
@@ -12,20 +12,14 @@ ENV GO111MODULE=on
12
12
13
13
14
14
# Build dependencies
15
-
16
- RUN yum update -y && \
17
- yum install -y rpm-build make git && \
18
- curl -SL https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz | tar -xzC /usr/local
19
15
RUN mkdir -p /go/src/github.com/ && \
20
16
git clone https://github.com/jenningsloy318/redfish_exporter /go/src/github.com/jenningsloy318/redfish_exporter && \
21
17
cd /go/src/github.com/jenningsloy318/redfish_exporter && \
22
18
make build
23
19
24
- FROM docker.io/library/centos:8
20
+ FROM golang:rc-bullseye
25
21
26
22
COPY --from=builder /go/src/github.com/jenningsloy318/redfish_exporter/build/redfish_exporter /usr/local/bin/redfish_exporter
27
23
RUN mkdir /etc/prometheus
28
24
COPY config.yml.example /etc/prometheus/redfish_exporter.yml
29
25
CMD ["/usr/local/bin/redfish_exporter" ,"--config.file" ,"/etc/prometheus/redfish_exporter.yml" ]
30
-
31
-
You can’t perform that action at this time.
0 commit comments