[docker] Include pip license file (#12583)

* [docker] Include pip license file

This file has been missing in production builds

* Add CI test

* Update contrib/container/Dockerfile

Co-authored-by: Matthias Mair <code@mjmair.com>

* Fix typo

* path fix

* More pathing fixes

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2026-08-09 07:27:15 +10:00
committed by GitHub
co-authored by Matthias Mair
parent bc150e09e8
commit eb37082149
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -764,6 +764,9 @@ def install(
f'pip-licenses --format=json --with-license-file --no-license-path > {lic_path}',
)
if not lic_path.exists() or lic_path.stat().st_size == 0:
raise FileNotFoundError(f"License file was not generated at '{lic_path}'")
success('Dependency installation complete')