This commit is contained in:
kislovdm
2024-02-07 08:23:53 +03:00
commit 1fe0ea5f30
7 changed files with 374 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM repo.dev002.local/mcr.microsoft.com/dotnet/sdk:8.0 AS build
# copy csproj and restore as distinct layers
COPY ./src /solution/
WORKDIR /solution/
RUN dotnet restore
FROM build AS publish
RUN dotnet publish -c release --property PublishDir=/app --no-restore /p:TreatWarningsAsErrors=true /warnaserror -warnaserror
# final stage/image
FROM repo.dev002.local/mcr.microsoft.com/dotnet/aspnet:8.0 AS final
WORKDIR /app
COPY --from=publish /app ./
ENTRYPOINT ["dotnet", "Approve.Checker.dll"]