|
|
|
|
|
by leetrout
1275 days ago
|
|
> If your project builds a Docker container, also create a .dockerignore file to specify files and directories that should be excluded from the container. I would nitpick this. You build images not containers and since files are not copied by default there is more nuance here that the .dockerignore file makes builds faster by not including them in the build context. That does ultimately prevent COPY directives from using them but it is these sorts of brief, slightly inaccurate summaries that mislead folks as they build understanding. |
|
> slightly inaccurate Not entirely, I'm not sure the author even wanted to stress on this in the article. People won't learn docker from a python article about the same.