From a3e65862db3db848fe0c01fc3a27adce41715c04 Mon Sep 17 00:00:00 2001 From: Roger Feese <rfeese@nebraska.edu> Date: Thu, 6 May 2021 15:46:46 -0500 Subject: [PATCH] Initial Dockerfile. --- dotnet-build-server/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dotnet-build-server/Dockerfile diff --git a/dotnet-build-server/Dockerfile b/dotnet-build-server/Dockerfile new file mode 100644 index 0000000..d4f2816 --- /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 -- GitLab