How to limit docker runner resources?

Hi. I use docker runner to build my rails apps. But during building runner use ALL system cpu that cause usage alerts. Is there a way to limit resource usage just like in swarm or compose?