How docker build turns a Dockerfile into layers
Select an icon to see what it is.
Step 4 of 6
RUN executes in a temporary container
RUN chmod +x /app.sh starts a short-lived container from the layers so far, through runc. When the command exits, BuildKit saves what changed in the filesystem as a new layer. The container itself is thrown away.
BuildKit log (illustrative numbers)
#5 [3/3] RUN chmod +x /app.sh