Best way to add more docker resources for use in Gitlab CI?

If I want GitLab CI to use Docker images that utilize more resources (RAM, CPU, etc…) what is the best/easiest way to go about achieving this? Would I manually customize the Docker images for use in GitLab CI or is there another way to achieve this that I’m not thinking of? Thanks!