diff --git a/Dockerfile.ocp b/Dockerfile.ocp index 0782bca43..4d1d36ad7 100644 --- a/Dockerfile.ocp +++ b/Dockerfile.ocp @@ -21,7 +21,9 @@ RUN if [ $(uname -m) = "x86_64" ]; then \ FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-base-openshift-4.6 -COPY ./main-packages-list.txt /tmp/main-packages-list.txt +ARG PKGS_LIST=main-packages-list.txt + +COPY ${PKGS_LIST} /tmp/main-packages-list.txt RUN dnf upgrade -y && \ dnf --setopt=install_weak_deps=False install -y $(cat /tmp/main-packages-list.txt) && \ @@ -60,4 +62,3 @@ COPY ./httpd.conf /etc/httpd/conf.d/httpd.conf COPY ./httpd-modules.conf /etc/httpd/conf.modules.d/httpd-modules.conf ENTRYPOINT ["/bin/runironic"] -