Skip to content

Commit

Permalink
Add dockerfile to facilitate build on any platform (#97)
Browse files Browse the repository at this point in the history
* Add dockerfile to facilitate build on any platform

* Polish up dockerfile

* Just a little more polish
  • Loading branch information
definitelynotagoblin authored Jan 19, 2024
1 parent 79a9b84 commit 00c2180
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM mono:6.12.0

# Install .NET SDK
ENV DOTNET_VERSION=5.0

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 /build

CMD [ "dotnet", "build" ]

## Build Docker image (one time):
# docker build -t shc-build . --no-cache

## Build solution (every time):
# docker run --rm -v .:/build shc-build

0 comments on commit 00c2180

Please sign in to comment.