Initial code commit.
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
|
||||
WORKDIR /App
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN dotnet restore
|
||||
|
||||
RUN dotnet publish "ui/Sufi.Demo.PeopleDirectory.UI/Server/Sufi.Demo.PeopleDirectory.UI.Server.csproj" -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
|
||||
|
||||
WORKDIR /App
|
||||
|
||||
COPY --from=build /App/out ./
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["dotnet", "Sufi.Demo.PeopleDirectory.UI.Server.dll"]
|
||||
Reference in New Issue
Block a user