2023-01-31 02:10:05 +03:00
|
|
|
# Uses a multi-stage container build to build the RP & E2E components.
|
|
|
|
#
|
|
|
|
ARG REGISTRY
|
2024-07-18 10:35:06 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/go-toolset:1.21.11-1.1720406008 AS builder
|
2024-01-25 05:22:06 +03:00
|
|
|
|
2023-01-31 02:10:05 +03:00
|
|
|
USER root
|
2024-01-25 05:22:06 +03:00
|
|
|
ENV GOPATH=/root/go
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . /app
|
2024-09-05 08:29:19 +03:00
|
|
|
|
2024-02-01 05:21:34 +03:00
|
|
|
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips && make e2e.test e2etools
|
2023-01-31 02:10:05 +03:00
|
|
|
|
|
|
|
FROM ${REGISTRY}/ubi8/ubi-minimal
|
|
|
|
RUN microdnf update && microdnf clean all
|
2024-01-25 05:22:06 +03:00
|
|
|
COPY --from=builder /app/aro /app/e2e.test /app/db /app/cluster /app/portalauth /app/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
|
2024-08-30 22:35:50 +03:00
|
|
|
ENV HOME=/tmp
|