From 715ba476f6793ff14dc720643a43acf6eafe9eb1 Mon Sep 17 00:00:00 2001 From: Hugo LIVET Date: Wed, 12 Oct 2022 09:13:49 +0000 Subject: [PATCH] Dokerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..10cc333 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM aosapps/drone-sonar-plugin AS base + +FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine + +COPY --from=base /bin/drone-sonar /bin/ +WORKDIR /bin + +RUN apk update && apk add openjdk11-jre nodejs && rm -rf /tmp/* /var/cache/apk/* + +RUN dotnet tool install --global dotnet-sonarscanner +RUN dotnet tool install --global dotnet-reportgenerator-globaltool + +ENV JAVA_HOME /usr/lib/jvm/default-jvm/ +ENV PATH ${PATH}:${JAVA_HOME}/bin +ENV PATH $PATH:/root/.dotnet/tools + +ENTRYPOINT /bin/drone-sonar \ No newline at end of file