1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
FROM registry.access.redhat.com/ubi8/go-toolset:1.20 AS builder
USER root
WORKDIR /workspace
COPY . .
RUN make build_e2e
FROM registry.access.redhat.com/ubi8/ubi-minimal
LABEL MAINTAINER "CRC <devtools-cdk@redhat.com>"
COPY --from=builder /workspace/images/build-e2e/entrypoint.sh /usr/local/bin/
COPY --from=builder /workspace/out /opt/crc/bin
# Review this when go 1.16 with embed support
COPY --from=builder /workspace/test/e2e/features /opt/crc/features
COPY --from=builder /workspace/test/testdata /opt/crc/testdata
ENV EPEL https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN rpm -ivh ${EPEL} \
&& microdnf --enablerepo=epel install -y openssh-clients sshpass \
&& microdnf clean all
ENTRYPOINT ["entrypoint.sh"]
|