2023-01-31 02:10:05 +03:00
|
|
|
# Uses a multi-stage container build to build the RP & E2E components.
|
|
|
|
#
|
|
|
|
ARG REGISTRY
|
2023-09-08 07:31:52 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/go-toolset:1.18.10 AS builder
|
2023-01-31 02:10:05 +03:00
|
|
|
ENV GOOS=linux \
|
|
|
|
GOPATH=/go/
|
|
|
|
WORKDIR ${GOPATH}/src/github.com/Azure/ARO-RP
|
|
|
|
USER root
|
|
|
|
COPY . ${GOPATH}/src/github.com/Azure/ARO-RP/
|
|
|
|
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make e2e.test e2etools
|
|
|
|
|
|
|
|
FROM ${REGISTRY}/ubi8/ubi-minimal
|
|
|
|
RUN microdnf update && microdnf clean all
|
2023-07-28 04:29:23 +03:00
|
|
|
COPY --from=builder /go/src/github.com/Azure/ARO-RP/aro /go/src/github.com/Azure/ARO-RP/e2e.test /go/src/github.com/Azure/ARO-RP/db /go/src/github.com/Azure/ARO-RP/cluster /go/src/github.com/Azure/ARO-RP/portalauth /go/src/github.com/Azure/ARO-RP/jq /usr/local/bin/
|
2023-01-31 02:10:05 +03:00
|
|
|
ENTRYPOINT ["aro"]
|
|
|
|
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp
|
|
|
|
USER 1000
|