Kamal with a rails 6.1 and ruby 3.0

I’m stuck around this error since a moment.

i use: ruby 3.0.1 rails 6.1.7.1

i get this error when i use ‘kamal setup’

and in production.rb, this line is commented # config.require_master_key = true

------
Dockerfile:39
--------------------
  37 |     
  38 |     # Precompiling assets for production without requiring secret RAILS_MASTER_KEY
  39 | >>> RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
  40 |     
  41 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 1

i used EDITOR="code --wait" rails credentials:edit to be sure to have clean credentials.

i found some work around but it was for rails 7.0 &7.1

https://www.reddit.com/r/rails/comments/191n2cl/error_doing_a_kamal_deploy/