TL;DR:
I'm trying to get around sending my context to some remote build infrastructure on each container build in the remote infrastructure.
Roughly I'm thinking:
• package pex
• Upload pex, name it the sha256 - if it doesn't exist
• Template dockerfile with buildarg pointing to download the pex by it's sha. This way the remote build's container layer cache is used if the sha doesn't change
Remote infrastructure here is some IOT container image building stuff.