I am learning Docker and trying to understand volumes. Looking at this example of wordpress compose and its dockerfile I don't get which command is responsible for populating wordpress files into /var/www/html.
I do see that there is VOLUME /var/www/html command in the dockerfile to create a mount point.
There is command to download wordpress files and put in /usr/src/wordpress directory.
But what I don't get is how does files get into /var/www/html?
Is it just that mounting to this directory cause all the wordpress files magically stored in this?
Is it somewhere else docker is doing this?
EDIT: These wordpress files are already moved or copied when ran docker-compose up. I'm not asking how can move/mount files into /var/www/html. But question is how this things happened referring to the dockerfile and docker compose file above.
Thanks