- `--file=X` and `-fX` weren't recognized as a given Dockerfile, so dive searched for a default one and failed when the context had none - every arg was checked for a directory holding a Dockerfile, flag values included: `dive build -t app .` with `./app/Dockerfile` present built `app/Dockerfile` against `.` - stdin (`-`) and URL contexts always failed without `-f` - the args are now walked as docker flags to find the actual context (the last positional arg), and only that directory is searched for a Containerfile/Dockerfile. When nothing is found, no `-f` is added and docker decides Co-authored-by: tgolob <34978067+tgolob@users.noreply.github.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| build.go | ||
| build_test.go | ||
| docker.go | ||
| docker_test.go | ||
| ocidir_test.go | ||
| platform_test.go | ||
| podman.go | ||
| podman_test.go | ||
| registry_test.go | ||
| source.go | ||
| source_test.go | ||