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