Relatively recently, docker has introduced a "linter" for dockerfiles: https://docs.docker.com/reference/build-checks/
I went through all the files (using for f in $(find . -name Dockerfile); do docker build --check -f $f . ; done) and fixed found warnings.
A newer version of docker/build-push-action will report such warnings as build annotations (see https://github.com/neondatabase/autoscaling/pull/1041/files, scroll down to "Unchanged files with check annotations")
Relatively recently, docker has introduced a "linter" for dockerfiles: https://docs.docker.com/reference/build-checks/ I went through all the files (using
for f in $(find . -name Dockerfile); do docker build --check -f $f . ; done
) and fixed found warnings. A newer version ofdocker/build-push-action
will report such warnings as build annotations (see https://github.com/neondatabase/autoscaling/pull/1041/files, scroll down to "Unchanged files with check annotations")