Beginner
Docker & Containers
Q20 / 100
What is the purpose of a ".dockerignore" file?
Correct! Well done.
Incorrect.
The correct answer is B) To specify files and directories that should be excluded from the build context sent to the Docker daemon
B
Correct Answer
To specify files and directories that should be excluded from the build context sent to the Docker daemon
Explanation
Similar to .gitignore, .dockerignore prevents unnecessary or sensitive files (like node_modules or .git) from being included in the build context, speeding up builds and reducing image size.
Progress
20/100