Class: Dash::Dockerfile::Rules::MissingDockerignore
- Inherits:
-
Base
- Object
- Base
- Dash::Dockerfile::Rules::MissingDockerignore
- Defined in:
- lib/dash/dockerfile/rules/missing_dockerignore.rb
Overview
No .dockerignore means the whole working tree is shipped to the builder: .git, test artifacts, node_modules, and whatever else happens to be lying around.
Constant Summary collapse
- SUGGESTION =
"add a .dockerignore covering .git and any build or dependency directories"
Instance Method Summary collapse
Instance Method Details
#findings ⇒ Object
6 7 8 9 10 |
# File 'lib/dash/dockerfile/rules/missing_dockerignore.rb', line 6 def findings return [] if context_dir.nil? || dockerignore [ warning(Dash::Dockerfile::Dockerignore::FILENAME, "the build context has no .dockerignore, so everything in it is sent to the builder", SUGGESTION) ] end |