Currently for building Docker images there are no options to increase resource_class as the machine executor and remote docker environment share the same specs at 2 cores and 8Gb of ram.This is a request to extend the resource class feature to all executors. (MacOS has a current post already for this issue).
CCI-I-707