Create/modify files in Dockerfile

I want to create / modify file in Dockerfile automatically, how to do that?

Can you elaborate? Which file are you talking about?