一 作用 配合ADD和COPY使用,.dockerignore文件排除构建镜像时不需要的文件或目录。 二 一些示例 # comment */temp* */*/temp* temp? *.md !README.md *.md !README*.md README-secret.md *.md README-secret.md !README*.md