是可以使用.dockerignore使docker构build真的忽略了一切?

操作系统版本/内部版本: macOS High Sierra 10.13(17A365) – Docker版本17.10.0-ce,build f4ffd25

有一个文件夹与1.4GB和没有.dockerignore文件,构build需要很长的时间才能开始,我得到这个消息:

> time docker build -t continous-testing-dashboard . Sending build context to Docker daemon 1.416GB ... 5.23s user 11.88s system 45% cpu 37.795 total 

总时间: 37秒

将(几乎)所有文件夹添加到.dockerignore文件

 .git .idea app bootstrap config database node_modules public resources storage tests vendor 

Deamon还需要很多时间并且发送一个大背景:

 > time docker build -t continous-testing-dashboard . Sending build context to Docker daemon 675.3MB ... 17.81s user 6.78s system 86% cpu 28.439 total 

总时间: 28秒

但是在一个空文件夹上构build相同的Dockerfile我得到:

 Sending build context to Docker daemon 32.26kB 0.03s user 0.03s system 25% cpu 0.230 total 

总时间: 230毫秒!

看起来好像没有任何意义,仍然在文件中join1/3的文件。 有没有办法让它真的无视everyhing?