PhotoAPI base image build frequently fails
Description
Examples:
- https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/jobs/1358555
- https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/jobs/1358555
- https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/jobs/1370862
- https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/jobs/1372721
This could be due to the heavy process of compiling dlib for both the AMD64 and ARM64 platforms at the same time.
Task list
- Add support (for all image builds) for the option to limit parallelism when building.
Acceptance criteria
-
Weekend image builds for PhotoAPI base build without needing to retry for two weekends running -
Other image builds aren't affected but could make use of this functionality