Dockerfile reference recommends to create specific context folders with only the necessary files and folders.
So far, I am using the home folder for storing Dockerfiles. This folder has files unrelated to the different images I create in the process. Therefore, Docker daemon receives all these unnecessary files.
Note: I have checked that this does not affect image sizes, but I assume that it might affect the time needed to build an image as the folder needs to be transferred.
Dockerfile reference recommends to create specific context folders with only the necessary files and folders.
So far, I am using the home folder for storing Dockerfiles. This folder has files unrelated to the different images I create in the process. Therefore, Docker daemon receives all these unnecessary files.
Note: I have checked that this does not affect image sizes, but I assume that it might affect the time needed to build an image as the folder needs to be transferred.