1- FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch
1+ FROM mcr.microsoft.com/dotnet/core/sdk
22
33LABEL "com.github.actions.name" ="dotnet-sonarscanner"
44LABEL "com.github.actions.description" ="sonarscanner for dotnet core"
@@ -10,14 +10,20 @@ LABEL "homepage"="https://github.com/Secbyte/dotnet-sonarscanner"
1010LABEL "maintainer" ="Joshua Duffy <mail@joshuaduffy.org>"
1111
1212RUN echo "deb http://http.us.debian.org/debian/ testing contrib main" >> /etc/apt/sources.list && \
13+ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg && \
14+ mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \
15+ wget -q https://packages.microsoft.com/config/debian/10/prod.list && \
16+ mv prod.list /etc/apt/sources.list.d/microsoft-prod.list && \
17+ chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
18+ chown root:root /etc/apt/sources.list.d/microsoft-prod.list && \
1319 apt-get update && \
14- apt-get install -y --no-install-recommends default-jre && \
20+ apt-get install -y --no-install-recommends default-jre apt-transport-https aspnetcore-runtime-2.1 && \
1521 apt-get -t testing install -y --no-install-recommends python3.7 python3-distutils && \
1622 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
1723 python3.7 get-pip.py && \
1824 rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
1925 apt-get autoremove -y && \
20- dotnet tool install dotnet-sonarscanner --tool-path . --version 4.6.2
26+ dotnet tool install dotnet-sonarscanner --tool-path . --version 4.7.1
2127
2228ADD entrypoint.sh /entrypoint.sh
2329
0 commit comments