Skip to content

Conversation

ghostsquad
Copy link

Always exclude Dockerfile and .dockerignore from being ignored.

https://docs.docker.com/engine/reference/builder/#dockerignore-file

You can even use the .dockerignore file to exclude the Dockerfile and .dockerignore files.
These files are still sent to the daemon because it needs them to do its job.
But the ADD and COPY instructions do not copy them to the image.

resolves #484

Always exclude Dockerfile and .dockerignore from being ignored.

https://docs.docker.com/engine/reference/builder/#dockerignore-file
> You can even use the .dockerignore file to exclude the Dockerfile and .dockerignore files.
> These files are still sent to the daemon because it needs them to do its job.
> But the ADD and COPY instructions do not copy them to the image.

resolves #484
@kiela
Copy link

kiela commented May 29, 2019

@tlunter Any chance to get it merged in?

@ianfixes
Copy link
Contributor

ianfixes commented Jun 8, 2021

What does this PR need in order to be accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build_from_dir can't find Dockerfile when .dockerignore is "*"

3 participants