Clarify .dockerignore usage in README
The previous instructions made me think mutation of the .dockerignore file was not supported with the git context, but the the basic .dockerignore was supported (not the case). Just trying to improve the doc so it is more clear.
I have a Dockerfile that expects .git to be present. So I ran into this issue with the git vs path context. Once I found the relevant part in the README the explanation there was clear to me.
The problem I had is that I looked in the wrong place of the README (the examples section). So maybe we could add a link to this part of the README in the examples section?
I have a
Dockerfilethat expects.gitto be present. So I ran into this issue with the git vs path context. Once I found the relevant part in the README the explanation there was clear to me.The problem I had is that I looked in the wrong place of the README (the examples section). So maybe we could add a link to this part of the README in the examples section?
You can keep the .git folder with Git context if you set the build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1: https://docs.docker.com/reference/dockerfile/#buildkit-built-in-build-args