Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: merges manifests builder stages to one (opendatahub-io#1381)
We can combine two build stages into one, as there is no need to always build both images (not done by podman) to only then decide from which one we want to copy manifests to the target image. Instead manifests stage will either copy local manifests or fetches using the script based on USE_LOCAL argument. Move USE_LOCAL and OVERWIRTE_MANIFESTS args under FROM since args have scope of the FROM they are declared in. It requires opt/manifests directory to exist, but since it's a part of git repo, it's fine. Original patch from: Bartosz Majsak <bartosz.majsak@gmail.com> [1] [1] opendatahub-io#773 Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com> (cherry picked from commit c1671ab)
- Loading branch information