Q. What is the purpose of the WORKDIR instruction in a Dockerfile?
β
Correct Answer: (A)
To set the working directory for subsequent instructions
Explanation: The WORKDIR instruction sets the working directory for subsequent instructions in the Dockerfile.