Revert "Some executors image enhancements (#39152)"
Created by: eseliger
This reverts commit dad1c643b0f01e6cb3f1a4daf4e2d42e580daa9a. Hadolint somehow didn't catch stuff on the branch and it broke main. I don't feel like bash today so reverting.
Test plan
Revert.