Release error: Failed to create cookie file '/.erlang.cookie'

Hi, this is the first time I migrated the release system for a distributed app from Distillery to Elixir releases.

I’m building a docker image containing the release but when I launch it I’m getting this error:

=ERROR REPORT==== 16-Aug-2023::14:04:26.370926 ===
Failed to create cookie file '/.erlang.cookie': eacces
=CRASH REPORT==== 16-Aug-2023::14:04:26.377384 ===

I tried to create a writable /.erlang.cookie file with some contents but it didn’t work.

Creating a release in the past with just Elixir releases has not been a problem, but this time I don’t know how to fix this error.