Build ansible Dockerfile results error Could not find pip3

Solution 1:

You have an error in your Dockerfile. Two lines in the RUN command are not separated by a ; \ or && \.

ansible-galaxy collection install azure.azcollection; \
pip3 install "pywinrm>=0.2.2"

So the error is returned by the ansible-galaxy command that tries to do something with pip3.