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.

"Dockerfile is excluded by pattern" error seems incorrect

See original GitHub issue

Dupe of #286 by request.

The Docker docs say:

You can even use the .dockerignore file to ignore the Dockerfile and .dockerignore files. This is useful if you are copying files from the root of the build context into your new container but do not want to include the Dockerfile or .dockerignore files (e.g. ADD . /someDir/).

To the maintainers of this project: When #286 was closed, was an intentional choice made to create divergent functionality in docker-java, or was it unclear at the time that a Dockerfile may be validly excluded by a .dockerignore file?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
KostyaShacommented, Dec 11, 2018

If docker allows, then code could be changed.

3reactions
stale[bot]commented, Jun 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Dockerfile is excluded by pattern" error seems incorrect #286
I have a .dockerignore file that includes the following: * !Dockerfile But I am getting an error message: Dockerfile is excluded by pattern...
Read more >
Is ignoring Dockerfile in '.dockerignore' not allowed?
DockerClientException : Dockerfile is excluded by pattern 'Dockerfile' in .dockerignore file at com.github.dockerjava.core.dockerfile.Dockerfile$ ...
Read more >
Dockerfile is excluded by pattern '*' in .dockerignore file
Workaround for this issue is to include the Dockerfile in the build, possibly via an exception eg. .dockerignore. * !Dockerfile.
Read more >
Dockerfile reference - Docker Documentation
If this file exists, the CLI modifies the context to exclude files and directories that match patterns in it. This helps to avoid...
Read more >
Static Application Security Testing (SAST) - GitLab Docs
SAST job fails with message strconv.ParseUint: parsing "0.0": invalid syntax. Invoking Docker-in-Docker is the likely cause of this error. Docker-in- ...
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