Just to check if I'm getting the "Dagger way" of doing things.
Reading other questions here on help I saw that via SDK (TS) I cannot use exportImage because it is considered a security issue. (I really wish that this was possible)
My expectation is to create a base image that has everything my app needs and save it to my current local images. This base image has its own Dockerfile.
Then I can build all my apps using this base image.
Each app has his own Dockerfile[prod|staging|misc] that is based on the base image (FROM BASEIMAGE:XX).
I got it that I can use a directory and read a dockerfile with dockerBuild and build a Container, but this only uses remotes images, If I try to reference a local image it fails.
So I'm imagining that the correct way is to build a container with the dockerBuild and copy my files for each app and retype all my Dockerfile commands with the withExec.
Since I can't at the moment publish the image to a registry (I'm not on company VPN to reach the registry or I don't have internet) and can't even reference a local image that I already have built on my machine the only solution is to retype all Dockerfile commands?