Results site in .NET Core

This commit is contained in:
Elton Stoneman
2018-09-26 10:29:39 +01:00
parent 879e5bc477
commit 985af62bb1
14 changed files with 165 additions and 42 deletions

16
result/dotnet/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM microsoft/dotnet:2.1-sdk as builder
WORKDIR /Result
COPY Result/Result.csproj .
RUN dotnet restore
COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]
COPY --from=builder /out .