Added Dockerfile and docker ignore file

This commit is contained in:
2025-12-31 16:07:13 +03:30
parent d4e065f188
commit 17f4a7930e
3 changed files with 42 additions and 0 deletions

11
PdfService/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
dotnet publish --self-contained false -o /app
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "PdfService.dll"]