It seems like a permission issue with the build folder. You can try changing the ownership of the build folder to the user running the container. You can do this by running the following command inside the container:
chown -R <user>:<group> /path/to/build/folder
Replace <user> and <group> with the user and group running the container and /path/to/build/folder with the path to the build folder.
If that doesn't work, you can try changing the permissions of the build folder to allow the user running the container to write to it. You can do this by running the following command inside the container:
chmod -R 777 /path/to/build/folder
Replace /path/to/build/folder with the path to the build folder.
If neither of these solutions work, you can try running the container as root by adding the --user=root flag to the docker run command. However, this is not recommended for security reasons.
Hope this helps!