Replies: 1 comment
On Docker / BuildKit, pick the ignore file this way:
If you need a third ignore list that is not next to the Dockerfile, copy it into place and use a path context. Mutations before the build step are ignored when the context is a Git ref. - name: Use a CI-specific ignore file
run: cp service/ci.dockerignore service/.dockerignore
- uses: docker/build-push-action@v6
with:
context: ./service
file: ./service/DockerfileSo this is not a missing mapping of an existing Docker CLI flag. A new |
Uh oh!
There was an error while loading. Please reload this page.
Hello there. The
docker buildcommand has a--ignorefileoption. I don't see this reflected as an option to thebuild-push-action. Am I missing something? If not, does this seem like a reasonable feature request?Thanks!
@starpit
All reactions