docker build ஐ இயக்கும்போது, Docker build directory இல் உள்ள files (build context) ஐ daemon க்கு அனுப்புகிறது. .dockerignore file இந்த context ஐலிருந்து தேவையற்ற files ஐ除外 செய்கிறது — builds ஐ வேகமாக்கி, image size ஐ குறைத்து, sensitive files ஐ leak ஆவதை தடுக்கிறது.
Build context
docker build -t myapp . # the "." is the build context — the directory sent to the daemon
# → Docker tarballs the ENTIRE context directory and sends it to the daemon BEFORE building
