"Dockerfile is excluded by pattern" error seems incorrect
See original GitHub issueDupe 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:
- Created 5 years ago
- Reactions:1
- Comments:10 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If docker allows, then code could be changed.
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.