The three ENV instructions are not necessary. The various official Docker images are not consistent on this pattern - some have it and others don't. Since the purpose of supporting Alpine is to have an efficient and slime image, IMO we should remove the URL and SHA layers. Their value is limited. I believe there is value in preserving the DOTNET_VERSION as this easily identifies the version of the primary component. Seeing this called out in the Dockerfile and when viewing Docker image layers is useful.
If this change is made, it should be used across all new Dockerfiles going forward in order to have consistency. Additionally, the update-dependency tool will need to be updated accordingly.
The three ENV instructions are not necessary. The various official Docker images are not consistent on this pattern - some have it and others don't. Since the purpose of supporting Alpine is to have an efficient and slime image, IMO we should remove the URL and SHA layers. Their value is limited. I believe there is value in preserving the DOTNET_VERSION as this easily identifies the version of the primary component. Seeing this called out in the Dockerfile and when viewing Docker image layers is useful.
If this change is made, it should be used across all new Dockerfiles going forward in order to have consistency. Additionally, the update-dependency tool will need to be updated accordingly.