COPY --from same source in different images produces a different layer

Oh, if that gives you some “repository name must be lowercase” error, then that may be related to the (unresolved) How can I expand a variable within a COPY command in the Dockerfile? (But that is digressing from your original problem; you could simply try with a hardcoded tag name instead.)