From 9946f7ea5eea6e149fa82134fbd59362d1e1b92a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 16 Feb 2022 16:42:27 +0100 Subject: [PATCH] Dockerfile: Install ScanCode from PyPI instead of building from source This is to work around [1]. [1]: https://github.com/nexB/scancode-toolkit/issues/2869 Signed-off-by: Sebastian Schuberth --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5de3cb9bc700d..222babbb82336 100644 --- a/Dockerfile +++ b/Dockerfile @@ -153,13 +153,7 @@ RUN /opt/ort/bin/import_proxy_certs.sh && \ # Add scanners (in versions known to work). ARG SCANCODE_VERSION -RUN curl -ksSL https://github.com/nexB/scancode-toolkit/archive/v$SCANCODE_VERSION.tar.gz | \ - tar -zxC /usr/local && \ - # Trigger ScanCode configuration for Python 3 and reindex licenses initially. - cd /usr/local/scancode-toolkit-$SCANCODE_VERSION && \ - PYTHON_EXE=/usr/bin/python3 /usr/local/scancode-toolkit-$SCANCODE_VERSION/scancode --reindex-licenses && \ - chmod -R o=u /usr/local/scancode-toolkit-$SCANCODE_VERSION && \ - ln -s /usr/local/scancode-toolkit-$SCANCODE_VERSION/scancode /usr/local/bin/scancode +RUN pip install --no-cache-dir scancode-toolkit==$SCANCODE_VERSION FROM run