diff --git a/Dockerfile b/Dockerfile index 2aa1e3695..b85f5a79e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,23 @@ +ARG SEED_ROOT=/opt/app-root/src/tackle2-seed FROM registry.access.redhat.com/ubi9/go-toolset:latest as builder ENV GOPATH=$APP_ROOT COPY --chown=1001:0 . . RUN make docker ARG SEED_PROJECT=konveyor/tackle2-seed ARG SEED_BRANCH=main -RUN git clone --branch ${SEED_BRANCH} https://github.com/${SEED_PROJECT} +ARG SEED_ROOT +RUN if [ ! -d "${SEED_ROOT}" ]; then \ + git clone --branch ${SEED_BRANCH} https://github.com/${SEED_PROJECT} ${SEED_ROOT}; \ + fi FROM quay.io/konveyor/static-report as report FROM registry.access.redhat.com/ubi9/ubi-minimal +ARG SEED_ROOT COPY --from=builder /opt/app-root/src/bin/hub /usr/local/bin/tackle-hub COPY --from=builder /opt/app-root/src/auth/roles.yaml /tmp/roles.yaml COPY --from=builder /opt/app-root/src/auth/users.yaml /tmp/users.yaml -COPY --from=builder /opt/app-root/src/tackle2-seed/resources/ /tmp/seed +COPY --from=builder ${SEED_ROOT}/resources/ /tmp/seed COPY --from=report /usr/local/static-report /tmp/analysis/report RUN microdnf -y install \