Added basic dockerfile for running the ASP.Net core App

This commit is contained in:
Niggl1999 2020-05-26 17:47:16 +02:00
parent 39aa048e87
commit 97295c293c
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /build
COPY . .
RUN dotnet restore
RUN dotnet publish -c Release -o /app
# Stage 2: Package up and set entrypoint
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "ScrumTaskboard.dll"]