Skip to content

Commit

Permalink
Polish up dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
definitelynotagoblin committed Jan 17, 2024
1 parent 9819d2c commit 480c24d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 480c24d

Please sign in to comment.