Witch assets pipeline use to Dockerize a Rails 6.1 app

I’m trying to dockerize a app which currently is using sprocket on heroku. But if i try to use sprocket in the container the app don’t support JS ES6, and i don’t want to use a .mjs extension for this files. If i use Webpacker, it don’t support a modern versión of node and i receved a yarn warning Integrity check even if i have a run yarn install --check-files on the dockerfile, i think is because i have node 18 on the container. So i want use docker with rails 6.1 and a modern version of node, Which asset pipeline can or should i use? Thanks in advance