Skip to content

Commit

Permalink
Update Dockerfile for DotNetCore 5.0.102 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 d1d30c4 commit 1dc60ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.405
FROM mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim

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

ENV SONAR_SCANNER_MSBUILD_VERSION=5.0.4.24009 \
DOTNETCORE_SDK=3.1.405 \
DOTNETCORE_RUNTIME=3.1.11 \
NETCOREAPP_VERSION=netcoreapp3.0 \
DOTNETCORE_SDK=5.0.102 \
DOTNETCORE_RUNTIME=5.0.2 \
NETAPP_VERSION=net5.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-$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 \
&& 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 \
&& chmod +x -R /sonar-scanner

# Cleanup
Expand Down

0 comments on commit 1dc60ce

Please sign in to comment.