Skip to content

Commit

Permalink
Update Dockerfile for DotNetCore 3.1.405 with SonarScanner 5.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gafda committed Jan 28, 2021
1 parent c65953d commit d1d30c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0.101
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.405

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

ENV SONAR_SCANNER_MSBUILD_VERSION=5.0.4.24009 \
DOTNETCORE_SDK=5.0.101 \
DOTNETCORE_RUNTIME=5.0.1 \
NETAPP_VERSION=net5.0 \
DOTNETCORE_SDK=3.1.405 \
DOTNETCORE_RUNTIME=3.1.11 \
NETCOREAPP_VERSION=netcoreapp3.0 \
DOCKER_VERSION=5:19.03.13~3-0~debian-buster \
CONTAINERD_VERSION=1.3.7-1 \
OPENJDK_VERSION=11 \
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 d1d30c4

Please sign in to comment.