Skip to content

Commit

Permalink
Update Dockerfile and Readme for DotNetCore 3.1.411 with SonarScanner…
Browse files Browse the repository at this point in the history
… 5.2.2
  • Loading branch information
gafda committed Jul 28, 2021
1 parent 88526ff commit 5993a74
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0.301
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.411

# Dockerfile meta-information
LABEL maintainer="NOS Inovação S.A." \
app_name="dotnet-sonar"

ENV SONAR_SCANNER_MSBUILD_VERSION=5.2.1.31210 \
DOTNETCORE_SDK=5.0.301 \
DOTNETCORE_RUNTIME=5.0.7 \
NETAPP_VERSION=net5.0 \
ENV SONAR_SCANNER_MSBUILD_VERSION=5.2.2.33595 \
DOTNETCORE_SDK=3.1.411 \
DOTNETCORE_RUNTIME=3.1.17 \
NETCOREAPP_VERSION=netcoreapp3.0 \
DOCKER_VERSION=5:20.10.7~3-0~debian-buster \
CONTAINERD_VERSION=1.4.6-1 \
CONTAINERD_VERSION=1.4.8-1 \
OPENJDK_VERSION=11 \
NODEJS_VERSION=16

Expand Down Expand Up @@ -48,9 +48,9 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \

# Install Sonar Scanner
RUN apt-get install -y unzip \
&& wget https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/$SONAR_SCANNER_MSBUILD_VERSION/sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip \
&& unzip sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip -d /sonar-scanner \
&& rm sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETAPP_VERSION.zip \
&& wget https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/$SONAR_SCANNER_MSBUILD_VERSION/sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip \
&& unzip sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip -d /sonar-scanner \
&& rm sonar-scanner-msbuild-$SONAR_SCANNER_MSBUILD_VERSION-$NETCOREAPP_VERSION.zip \
&& chmod +x -R /sonar-scanner

# Cleanup
Expand Down

0 comments on commit 5993a74

Please sign in to comment.