2021-03-10 00:13:26 +03:00
|
|
|
# Uses a multi-stage container build to build the RP.
|
|
|
|
#
|
2022-06-24 21:40:13 +03:00
|
|
|
ARG REGISTRY
|
2024-09-25 01:01:53 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/go-toolset:1.21.13-1 AS builder
|
2024-01-25 05:22:06 +03:00
|
|
|
|
2021-03-10 00:13:26 +03:00
|
|
|
USER root
|
2024-01-25 05:22:06 +03:00
|
|
|
ENV GOPATH=/root/go
|
2024-09-10 11:28:06 +03:00
|
|
|
ENV PATH=$PATH:${GOPATH}/bin/
|
2024-01-25 05:22:06 +03:00
|
|
|
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
|
2021-03-10 00:13:26 +03:00
|
|
|
|
2022-07-13 23:43:19 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/ubi-minimal
|
2021-03-10 00:13:26 +03:00
|
|
|
RUN microdnf update && microdnf clean all
|
2024-01-25 05:22:06 +03:00
|
|
|
COPY --from=builder /app/aro /app/e2e.test /usr/local/bin/
|
2021-03-10 00:13:26 +03:00
|
|
|
ENTRYPOINT ["aro"]
|
2024-05-27 17:36:35 +03:00
|
|
|
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp
|
2021-03-10 00:13:26 +03:00
|
|
|
USER 1000
|
2024-08-30 22:35:50 +03:00
|
|
|
ENV HOME=/tmp
|