diff --git a/images/must-gather/Containerfile b/images/must-gather/Containerfile index a14aadecb..1409c73fd 100644 --- a/images/must-gather/Containerfile +++ b/images/must-gather/Containerfile @@ -17,12 +17,9 @@ LABEL \ # must-gather. RUN microdnf -y install openshift-clients jq tar rsync --enablerepo="rhocp-4.16-for-rhel-9-x86_64-rpms" -WORKDIR /go/src/github.com/ComplianceAsCode/compliance-operator -COPY . . -RUN ls /go/src/github.com/ComplianceAsCode/compliance-operator/utils/must-gather/ +WORKDIR / -COPY /go/src/github.com/ComplianceAsCode/compliance-operator/utils/must-gather/gather /usr/bin/gather -COPY /go/src/github.com/ComplianceAsCode/compliance-operator/utils/must-gather/gather_compliance /usr/bin/gather_compliance +COPY /go/src/github.com/ComplianceAsCode/compliance-operator/utils/must-gather/gather* /usr/bin/ COPY /go/src/github.com/ComplianceAsCode/compliance-operator/utils/must-gather/fetch-raw-results-pod-template.yaml /usr/share/ ENTRYPOINT /usr/bin/gather