FROM openjdk:8-alpine MAINTAINER Jan Grewe <jan@faked.org> ENV VERSION 3.0.3.778 RUN apk add --no-cache curl grep sed unzip RUN curl -skLo /tmp/sonar-scanner.zip https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${VERSION}-linux.zip \ && unzip /tmp/sonar-scanner.zip -d /opt \ && mv /opt/sonar-scanner-${VERSION}-linux /opt/sonar-scanner \ && rm /tmp/sonar-scanner.zip RUN sed -i 's/use_embedded_jre=true/use_embedded_jre=false/g' /opt/sonar-scanner/bin/sonar-scanner ENV SONAR_RUNNER_HOME=/opt/sonar-scanner ENV PATH $PATH:/opt/sonar-scanner/bin WORKDIR /src