From 480c24d97b17ea96fee493f8362e6c842391755a Mon Sep 17 00:00:00 2001 From: anemeth Date: Wed, 17 Jan 2024 12:37:35 -0800 Subject: [PATCH] Polish up dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4fc1647c..71c2674a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,15 +3,15 @@ FROM mono:6.12.0 # Install .NET SDK ENV DOTNET_VERSION=5.0 -RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -Channel $DOTNET_VERSION -InstallDir /usr/share/dotnet \ +RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -Channel $DOTNET_VERSION -InstallDir /usr/share/dotnet \ && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet -WORKDIR /SharpHoundCommon +WORKDIR /build CMD [ "dotnet", "build" ] ## Build Docker image (one time): -# docker build -t sharphoundcommon-build . --no-cache +# docker build -t shc-build . --no-cache ## Build solution (every time): -# docker run --rm -v "$(pwd):/SharpHoundCommon" sharphoundcommon-build +# docker run --rm -v ".:/build" shc-build