question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a default ignore pattern when dockerFileDir is root project dir

See original GitHub issue

When the dockerFileDir is the same as ${project.baseDir} then it makes sense to have a default exclude for target/** when building the docker image.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
hindsholmcommented, Feb 21, 2018

I also find this quite confusing. I have my Dockerfile in the project root, and I can easily build it with docker build -t some/name . But in order to make this work with docker-maven-plugin, I have to create a .maven-dockerinclude file which IMHO is counter-intuitive. I would prefer that the plugin was more compatible with standard Docker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to include files outside of Docker's build context?
The best way to work around this is to specify the Dockerfile independently of the build context, using -f. For instance, this command...
Read more >
Dockerfile reference - Docker Documentation
The CLI interprets the .dockerignore file as a newline-separated list of patterns similar to the file globs of Unix shells. For the purposes...
Read more >
How to use .dockerignore and its importance - Shisho Cloud
Let's learn how to use .dockerignore for efficient Docker image ... Usually, you put the Dockerfile in the root directory of your project, ......
Read more >
fabric8io/docker-maven-plugin
Default output directory to be used by this plugin. ... is also treated as a FileSet exclude pattern as used by the maven-assembly-plugin....
Read more >
Ignoring Code - ESLint - Pluggable JavaScript Linter
Glob patterns in ignorePatterns are relative to the directory that the config file is ... by creating a .eslintignore file in your project's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found