diff --git a/Dockerfile b/Dockerfile index 566c9bb72..dc46019c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,8 +43,9 @@ RUN venv/bin/pip freeze # Check python dependencies for the GPL # Due to the following bug, pip results must be piped to a file before grepping: # https://github.com/pypa/pip/pull/3304 -RUN cat requirements.txt | grep -v "^-e" | awk -F'==' '{print $1}' | xargs venv/bin/pip --disable-pip-version-check show > pipinfo.txt -RUN test -z $(cat pipinfo.txt | grep GPL | grep -v LGPL) +RUN cat requirements.txt | grep -v "^-e" | awk -F'==' '{print $1}' | xargs venv/bin/pip --disable-pip-version-check show > pipinfo.txt && + test -z $(cat pipinfo.txt | grep GPL | grep -v LGPL) && + rm pipinfo.txt # Install the binary dependencies ADD binary_dependencies binary_dependencies