From 9819d2c5db11d3c46fd0bd82b998ff7ed5937b5b Mon Sep 17 00:00:00 2001 From: anemeth Date: Wed, 17 Jan 2024 08:21:27 -0800 Subject: [PATCH] Add dockerfile to facilitate build on any platform --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4fc1647c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +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 \ + && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet + +WORKDIR /SharpHoundCommon + +CMD [ "dotnet", "build" ] + +## Build Docker image (one time): +# docker build -t sharphoundcommon-build . --no-cache + +## Build solution (every time): +# docker run --rm -v "$(pwd):/SharpHoundCommon" sharphoundcommon-build