Added Dockerfile

This commit is contained in:
Fergal Moran
2023-08-11 21:07:55 +01:00
parent f8442ff1b5
commit 34cf5d9a39

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-preview.7-alpine3.18 AS build
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/nightly/aspnet:8.0.0-preview.7-alpine3.18
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "IdentityEndpointsSample.dll"]