Our Dockerfile has continued to grow without any improvements to the organization and readability. It has also begun to diverge from the Dockerfile found in p1. This PR improves the organization of our Dockerfile and attempts to bring it in sync with what we have at p1.
The only changes to the image this change creates is around how pip is installed in the second stage. This PR changes pip to install from a wheel like what is done in the p1 Dockerfile. It also adds clean up of the yum cache in every layer that does a yum install. Every other change is just for readability and organization.
Our Dockerfile has continued to grow without any improvements to the organization and readability. It has also begun to diverge from the Dockerfile found in p1. This PR improves the organization of our Dockerfile and attempts to bring it in sync with what we have at p1.
The only changes to the image this change creates is around how pip is installed in the second stage. This PR changes pip to install from a wheel like what is done in the p1 Dockerfile. It also adds clean up of the yum cache in every layer that does a yum install. Every other change is just for readability and organization.