the resulting Dockerfile has to be written to a temporary directory
all resources referenced by ADD and COPY commands have to be extracted from the image to the temporary directory next to the Dockerfile, keep directory structure so the context integrity is maintained, the resolved resources can be constructed as it happens
From here, it's now pretty easy.
Dockerfile
has to be written to a temporary directoryADD
andCOPY
commands have to be extracted from the image to the temporary directory next to theDockerfile
, keep directory structure so the context integrity is maintained, the resolved resources can be constructed as it happensrootfs
build