FROM java:8 MAINTAINER Jean-Pierre Huynh # Keep up to date according to SonarQube server compatibility matrix ENV SONAR_SCANNER_VERSION 2.6.1 ENV SONAR_SCANNER_HOME /sonar-scanner-${SONAR_SCANNER_VERSION} ENV SONAR_SCANNER_DIST sonar-scanner-${SONAR_SCANNER_VERSION}.zip ENV SONAR_SCANNER_DIST_URL https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_DIST} RUN wget ${SONAR_SCANNER_DIST_URL} && unzip ${SONAR_SCANNER_DIST} && rm ${SONAR_SCANNER_DIST} COPY sonar-scanner.properties ${SONAR_SCANNER_HOME}/conf/sonar-scanner.properties ADD entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]