dockerignore - CI/CD Glossary Definition
A .dockerignore file lists paths excluded from the build context before it is sent to the builder, similar to .gitignore. It keeps secrets, node_modules, and .git out of images and speeds builds.
A .dockerignore file lists paths excluded from the build context before it is sent to the builder, similar to .gitignore. It keeps secrets, node_modules, and .git out of images and speeds builds.
A .dockerignore file lists paths excluded from the build context before it is sent to the builder, similar to .gitignore. It keeps secrets, node_modules, and .git out of images and speeds builds.
Why it matters
Excluding large or sensitive directories reduces context transfer time in CI and prevents accidental leakage of local files into a layer.