diff --git a/Dockerfile b/Dockerfile index 2ad1609..45318ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM openjdk:8 -ENV SONAR_SCANNER_VERSION 2.8 +ENV SONAR_SCANNER_VERSION 3.3.0.1492-linux RUN apt-get update RUN apt-get install unzip -y -RUN curl -sLO https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-${SONAR_SCANNER_VERSION}.zip -RUN unzip sonar-scanner-${SONAR_SCANNER_VERSION} +RUN curl -sLO https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip +RUN unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION} RUN chmod +x /sonar-scanner-${SONAR_SCANNER_VERSION}/bin/sonar-scanner RUN cd /usr/bin && ln -s /sonar-scanner-${SONAR_SCANNER_VERSION}/bin/sonar-scanner sonar-scanner