forked from openshift/installer-aro-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.aro
27 lines (26 loc) · 899 Bytes
/
Dockerfile.aro
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
26
27
# Uses a multi-stage container build to build installer-aro-wrapper.
ARG REGISTRY=registry.access.redhat.com
ARG GO_VERSION=1.22
FROM ${REGISTRY}/ubi8/go-toolset:${GO_VERSION} AS builder
ENV GOOS=linux \
GOPATH=/go/
WORKDIR ${GOPATH}/src/github.com/openshift/installer-aro-wrapper
USER root
RUN yum update -y
COPY . ${GOPATH}/src/github.com/openshift/installer-aro-wrapper/
RUN git config --system --add safe.directory '*'
RUN pwd
RUN ls -lrta
RUN ls -lrta .bingo
RUN source .bingo/variables.env \
# install bingo itself
&& make -f .bingo/Variables.mk ${BINGO} \
# and all the tools it manages
&& ${BINGO} get -l
ENV PATH=$PATH:${GOPATH}/bin/
RUN make aro
FROM ${REGISTRY}/ubi8/ubi-minimal
RUN microdnf update && microdnf clean all
COPY --from=builder /go/src/github.com/openshift/installer-aro-wrapper/aro /bin/openshift-install
ENTRYPOINT ["/bin/openshift-install"]
USER 1000