Trace docker layer in mainfest to source Dockerfile command


I have a requirement to look at the layers of the image and check which layer is from BaseImage and which ones are from application layer. Is there a feature that could help to map the layer id to its source Dockerfile command?

PS: I tried to use dive, but unfortunately, the layer IDs shown in dive does not correlate with what is shown in docker manifest inspect for the image,

Any help would be greatly appreciated!