Docker builds are slower than necessary because unnecessary files (.git/, target/, *.md, IDE configs) get copied into the build context. Solution: Create .dockerignore at project root: