Skip to content

Commit f17e99b

Browse files
authored
Merge pull request #5 from stackhpc/bump-build
Build updated commit in StackHPC fork
2 parents 1061b8b + 88e38d8 commit f17e99b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

Dockerfile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
FROM golang:rc-bullseye AS builder
1+
FROM golang:1.21 AS builder
22

33
LABEL maintainer="Jennings Liu <jenningsloy318@gmail.com>"
44

55
ARG 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
158
RUN 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

2216
COPY --from=builder /go/src/github.com/stackhpc/redfish_exporter/build/redfish_exporter /usr/local/bin/redfish_exporter
2317
RUN mkdir /etc/prometheus

0 commit comments

Comments
 (0)