.dockerignore

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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.