Does Anyone know why my Docker image deployed through heroku is different than one created locally

I created a docker image locally and it runs fine. However when I push it to Heroku the container is different. Namely the .cache folder is missing. Is there a limit to the size of Heroku docker containers?

Source: StackOverflow