diff --git a/Dockerfile b/Dockerfile index 71ad9b5..a2f7865 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ ARG SONAR_SCANNER_CLI=sonar-scanner-cli-${SONAR_VERSION} ARG SONAR_SCANNER=sonar-scanner-${SONAR_VERSION} RUN apt-get update \ - && apt-get install -y nodejs curl \ + && apt-get install -y nodejs curl npm \ + && npm i -g typescript \ && apt-get clean COPY --from=build /go/src/github.com/aosapps/drone-sonar-plugin/drone-sonar /bin/ @@ -21,7 +22,9 @@ WORKDIR /bin RUN curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/${SONAR_SCANNER_CLI}.zip -so /bin/${SONAR_SCANNER_CLI}.zip RUN unzip ${SONAR_SCANNER_CLI}.zip \ && rm ${SONAR_SCANNER_CLI}.zip - + +ENV NODE_PATH=/usr/local/lib/node_modules +ENV PATH=/usr/local/bin:/usr/bin:/bin ENV PATH $PATH:/bin/${SONAR_SCANNER}/bin -ENTRYPOINT /bin/drone-sonar +ENTRYPOINT /bin/drone-sonar \ No newline at end of file