Process Flow - WORKDIR instruction for directory
Start Dockerfile
Read WORKDIR instruction
Check if directory exists
Yes No
Set as current
Use directory for next commands
Continue build
Docker reads the WORKDIR line, checks if the directory exists, creates it if needed, then sets it as the working directory for following commands.