mirror of
https://github.com/apple/container.git
synced 2026-07-15 05:57:01 +00:00
ce171ac3ee
This PR fixes `container build` to use docker specific ignore (#1169). This PR relies on apple/container-builder-shim#68. When docker specific ignore file is detected, it creates a hidden docker directory (i.e., `.hidden-docker-dir`) under the build context, and places Dockerfile and ignore file under there. This hidden directory is passed to the builder shim and used by buildkit daemon to correctly figure out the docker specific ignore file. Docker specific ignore file is detected regardless of whether i) they are under nested directory, ii) outside build context, iii) using custom names. If docker specific ignore is not provided, hidden directory is also not created, and buildkit daemon will use the docker ignore file at build context root as usual. ## Type of Change - [X] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context Docker specific ignore works. ## Testing - [X] Tested locally - [ ] Added/updated tests - [ ] Added/updated docs