I still don't know how to solve this directly from the Dockerfile.
However, I tried using a docker-compose
and it worked quite well. I still get the warning from the filter(), but the login/ endpoint does not freeze (in fact it returns all valid tokens).