SIGN IN SIGN UP
wagoodman / dive UNCLAIMED

A tool for exploring each layer in a docker image

0 0 89 Go

Add Containerfile support for dive build command (#536) (#588)

* Add Containerfile support for dive build command

This commit adds Containerfile discovery for `dive build` command for docker engine.
By default, docker uses `Dockerfile` and will fail if the build context contains `Containerfile` instead.
This commit fixes it.

* Add lowercase logic to Containerfile and Dockerfile discovery function

This commit adds:
* Lowercase test for Containerfile discovery function.
  It is now possible to specify `containerfile` or `dockerfile` path
  or discover them in a build context.
* Build arguments `--file` flag test.

* add tests

---------

Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
A
Artem Burashnikov committed
5fc8c99e29042289e4f07ae1f15cf726a8885e27
Parent: 77e136d
Committed by GitHub <noreply@github.com> on 4/1/2025, 1:41:00 AM