I have docker_container that uses upload to upload a file into a container. I need that file have specific ownership and access permissions but there appears to be no way to set owner uid/gid or permissions when using the upload block of the docker_container provider.
The container starts non-root so changing the file’s attributes at run time is’t really an option.
What’s the right way to upload a file and give it the required ownership/permissions ?