FEniCS slow down on M2 chip

Hello,
I am trying to run FEniCS 2019 on M2 chip using a Docker image and see an order of magnitude slow down in comparison with an older Linux machine. Is there any way I can accelerate it? Thank you!