File: Dockerfile

package info (click to toggle)
golang-github-crc-org-crc 2.34.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,548 kB
  • sloc: sh: 398; makefile: 326; javascript: 40
file content (24 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
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"]