Sign inSign up

kchason/dotnet-sonar-scanner

By kchason

•Updated over 1 year ago

Image with dotnet and dotnet-sonarscanner installed.

Image
Developer tools
0

2.1K

kchason/dotnet-sonar-scanner repository overview

Image with dotnet and the dotnet-sonarscanner⁠ tool installed.

ARG DOTNET_VERSION=9.0
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}

# Install the dotnet-sonarscanner tool
RUN dotnet tool install --global dotnet-sonarscanner

# Add the dotnet-sonarscanner tool to the PATH
ENV PATH="${PATH}:/root/.dotnet/tools"

# If the INCLUDE_JDK build argument is set, install the OpenJDK
ARG INCLUDE_JDK=false
RUN if [ "$INCLUDE_JDK" = "true" ]; then \
    apt-get update && \
    apt-get install -y --no-install-recommends openjdk-17-jdk && \
    apt-get clean; \
    fi

# Specify the default command
CMD ["dotnet-sonarscanner"]

Tag summary

Content type

Image

Digest

sha256:74be3d01d…

Size

305.2 MB

Last updated

over 1 year ago

docker pull kchason/dotnet-sonar-scanner