Skip to content

Commit

Permalink
Add dockerfile to facilitate build on any platform
Browse files Browse the repository at this point in the history
  • Loading branch information
definitelynotagoblin committed Jan 17, 2024
1 parent da6b83c commit 9819d2c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9819d2c

Please sign in to comment.