mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-10 23:46:21 +00:00
[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:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user