I don't think we want based on dockerfile here.  The normal commit id logic should be enough.