@AliciaBytes Take all the steps that are repetitive & always have the same end result (eg. installing c++) make a prebuilt image and upload it to your account, then use the prebuilt image for a base.
Here is yml for publishing to your container repo https://github.com/matthewdeanmartin/dedlin/blob/main/.github/workflows/build_push_image.yml