anchore / anchore-cli

Simple command-line client to the Anchore Engine service
Apache License 2.0
114 stars 54 forks source link

clean up and sync with p1 dockerfile #180

Closed Btodhunter closed 2 years ago

Btodhunter commented 2 years ago

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.