Skip to content

Commit

Permalink
If seed dir exists on the filesystem, don't clone it in the dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian von Feilitzsch <fabian@fabianism.us>
  • Loading branch information
fabianvf committed Dec 12, 2023
1 parent 89647a6 commit 6bb4477
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ 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}
RUN if [ ! -d "/opt/app-root/src/tackle2-seed" ]; then \
git clone --branch ${SEED_BRANCH} https://github.com/${SEED_PROJECT} /opt/app-root/src/tackle2-seed; \
fi

FROM quay.io/konveyor/static-report as report

Expand Down

0 comments on commit 6bb4477

Please sign in to comment.