Skip to content

Commit 00c2180

Browse files
Add dockerfile to facilitate build on any platform (#97)
* Add dockerfile to facilitate build on any platform * Polish up dockerfile * Just a little more polish
1 parent 79a9b84 commit 00c2180

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM mono:6.12.0
2+
3+
# Install .NET SDK
4+
ENV DOTNET_VERSION=5.0
5+
6+
RUN curl -sSL https://dot.net/v1/dotnet-install.sh \
7+
| bash -s -- -Channel $DOTNET_VERSION -InstallDir /usr/share/dotnet \
8+
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
9+
10+
WORKDIR /build
11+
12+
CMD [ "dotnet", "build" ]
13+
14+
## Build Docker image (one time):
15+
# docker build -t shc-build . --no-cache
16+
17+
## Build solution (every time):
18+
# docker run --rm -v .:/build shc-build

0 commit comments

Comments
 (0)