Files in a built container are in a read-only file system.
You can configure mounted Volumes to create paths that are writable during runtime.
Files are also writable during the build phase of a deployment - if needed, you can modify files in your container during the build hook without modifying the files in your repository.