diff --git a/build/Dockerfile b/build/Dockerfile index 50ac259e..1e5b83a4 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -6,6 +6,9 @@ USER root # see https://github.com/operator-framework/operator-sdk/issues/5745 RUN yum remove -y subscription-manager python3-subscription-manager-rhsm RUN yum update -y && yum clean all +# pull in jmespath py library for json processing +RUN python3 -m pip install jmespath + USER ${USER_UID} COPY roles/ ${HOME}/roles/ @@ -15,9 +18,6 @@ COPY watches-os.yaml ${HOME}/watches-os.yaml COPY watches-k8s-ns.yaml ${HOME}/watches-k8s-ns.yaml COPY watches-os-ns.yaml ${HOME}/watches-os-ns.yaml -# pull in jmespath py library for json processing -RUN python3 -m pip install jmespath - COPY requirements.yml ${HOME}/requirements.yml RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \ && chmod -R ug+rwx ${HOME}/.ansible