diff --git a/lib/utils/ignore.ts b/lib/utils/ignore.ts index e1ad325a..83dcac10 100644 --- a/lib/utils/ignore.ts +++ b/lib/utils/ignore.ts @@ -115,6 +115,11 @@ export class FileIgnorer { return true; } + // Don't ignore Dockerfile (with or without extension) or docker-compose.yml + if (/^Dockerfile$|^Dockerfile\.\S+/.test(path.basename(relFile)) || path.basename(relFile) === 'docker-compose.yml') { + return true; + } + const dockerIgnoreHandle = dockerIgnore(); const gitIgnoreHandle = ignore();