forked from helm/helm
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.rhel
25 lines (18 loc) · 822 Bytes
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.8 AS build
RUN yum install --setopt=skip_missing_names_on_install=False -y \
hg git make \
&& yum clean all \
&& rm -rf /var/cache/yum
ENV GOPATH /go
RUN mkdir -p /go/src/k8s.io/helm
WORKDIR /go/src/k8s.io/helm
COPY . .
# unset VERSION inherited from base before building
ENV VERSION ""
RUN make build
FROM registry.ci.openshift.org/ocp/builder:rhel-8-base-openshift-4.8
COPY --from=build /go/src/k8s.io/helm/bin/helm /usr/local/bin
LABEL io.k8s.display-name="OpenShift metering-helm" \
io.k8s.description="This is a base image used by the Metering Operator to assist in managing the lifecycle of the Openshift Metering components." \
io.openshift.tags="openshift" \
maintainer="<[email protected]>"