diff --git a/dotnet-build-server/Dockerfile b/dotnet-build-server/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d4f281610e7a29ef2f8e17d00b92fa5c32cdc440 --- /dev/null +++ b/dotnet-build-server/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/dotnet/sdk:3.1-buster + +ARG BUILD_DATE +ARG VCS_REF +ARG VERSION +LABEL org.label-schema.build-date=$BUILD_DATE \ + org.label-schema.name="dotnet SDK" \ + org.label-schema.description="Docker image to build .NET core applications" \ + org.label-schema.vcs-ref=$VCS_REF \ + org.label-schema.vendor="University of Nebraska - Lincoln" \ + org.label-schema.version="0.1.0" \ + org.label-schema.schema-version="1.0" \ + maintainer="Roger Feese <rfeese@nebraska.edu>" + +# Make sure that tools we need are installed +RUN apt-get update \ + && apt-get install git + +# sonarscanner (https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/) +RUN dotnet tool install --global dotnet-sonarscanner +RUN echo 'export PATH="$PATH:/root/.dotnet/tools"' >> ~/.bash_profile