github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/Dockerfile (about)

     1  FROM registry.ci.openshift.org/openshift/release:golang-1.21 AS builder
     2  
     3  WORKDIR /github.com/redhat-appstudio/e2e-tests
     4  USER root
     5  
     6  COPY go.mod .
     7  COPY go.sum .
     8  RUN go mod download -x
     9  COPY cmd/ cmd/
    10  COPY magefiles/ magefiles/
    11  COPY pkg/ pkg/
    12  COPY tests/ tests/
    13  COPY Makefile .
    14  
    15  RUN make build
    16  
    17  FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
    18  
    19  WORKDIR /root/
    20  COPY --from=builder /github.com/redhat-appstudio/e2e-tests/bin/e2e-appstudio ./
    21  COPY --from=builder /github.com/redhat-appstudio/e2e-tests/tests ./tests
    22  ENTRYPOINT ["/root/e2e-appstudio"]