-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerfile.dockerignore not working #1451
Comments
I've traced this to the fact that kaniko copies the Dockerfile into kaniko/cmd/executor/cmd/root.go Lines 207 to 251 in 6c70f16
From what I can tell #801 has never actually worked, because this file copy has been happening since before #801 started testing for the related |
Hi, I have the same problem:
The If I rename the file |
Actual behavior
#801 presumably added the ability to use kaniko with a dockerignore file following the format
${DOCKERFILE}.dockerignore
where$DOCKERFILE
is the path specified in the--dockerfile
arg to the executor. However, in my tests it's not being picked up and used.Expected behavior
Match what
docker build
does whenDOCKER_BUILDKIT=1
and what #801 claims to do.I expect if I run the executor with
--dockerfile foo
thenfoo.dockerignore
will be used as the ignore file applied to the build context if it is found.To Reproduce
Steps to reproduce the behavior:
.dockerignore
at the root of the build context and run it again.Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: