Error: open("packages/api/.strapi-updater.json"): Permission denied

I managed to ignore .strapi-updater.json within my .gitignore by doing

  • removing the file locally
  • clearing git cache with git rm -r --cached .
  • git add .
  • add the file to gitignore
  • commit the change

Now, every time the container generates the file, it’s being ignored.
Although this is a good solution, it’s not ideal as I might need to do this for every new repo I create if I miss to create my gitignore file beforehand.