mirror of
https://github.com/fergalmoran/IdentityEndpointsSample.git
synced 2025-12-22 09:39:12 +00:00
Added Dockerfile
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user