A Dockerfile for a water-quality API sets WORKDIR, ENV, and EXPOSE. Which statement about those instructions is accurate?
Select an answer to reveal the explanation.
Short Explanation
WORKDIR is “which desk,” ENV is “default sticky notes the process can still replace,” and EXPOSE is a label on the door saying which port we listen on—not the key that opens the firewall.
Full Explanation
WORKDIR sets the default directory for later build steps and for the running process. ENV embeds defaults the process can override at run time. EXPOSE documents the intended listening port; it does not by itself publish or map that port to the host or cluster.