Q: 2
Which of the following statement is INCORRECT with respect to a Dockerfile?
Options
Discussion
Option A
A , because WORKDIR also affects COPY and ADD as per Docker docs, so it's the incorrect statement here. Quick check in practice matches this too. Unless I'm missing some build context detail?
D , since the trap is about specifying CMD and ENTRYPOINT in JSON, which isn't strictly required for both together.
C/D? Not quite sure which one is more wrong here tbh.
Its A, seen similar in exam reports. WORKDIR does affect COPY and ADD too.
Be respectful. No spam.