Added basic dockerfile for running the ASP.Net core App
This commit is contained in:
parent
39aa048e87
commit
97295c293c
13
Dockerfile
Normal file
13
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user