.dockerignore: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:


Contains files and directories from the [[Docker_build#The_Build_Context|build context]] that won't be uploaded to the docker host when the image is built. .dockerignore supports exclusion patterns similar to [[.gitignore]].
Contains files and directories from the [[Docker_build#The_Build_Context|build context]] that won't be uploaded to the docker host when the image is built. .dockerignore supports exclusion patterns similar to [[.gitignore]].
⚠️ If a file or directory matches one of the <code>.dockerignore</code> patterns, it will not be possible to add it to the image with <code>COPY</code>.

Revision as of 23:11, 2 May 2022

External

Internal

Overview

Contains files and directories from the build context that won't be uploaded to the docker host when the image is built. .dockerignore supports exclusion patterns similar to .gitignore.

⚠️ If a file or directory matches one of the .dockerignore patterns, it will not be possible to add it to the image with COPY.