-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 715 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app
# Copia csproj e restaura dependências
COPY src/AzureDocIntelligence/*.csproj ./AzureDocIntelligence/
RUN dotnet restore AzureDocIntelligence/AzureDocIntelligence.csproj
# Copia todo o código
COPY src/AzureDocIntelligence/. ./AzureDocIntelligence/
# Build e publish
WORKDIR /app/AzureDocIntelligence
RUN dotnet publish -c Release -o out
# Runtime
FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
# Copia build para runtime
COPY --from=build /app/AzureDocIntelligence/out ./
# Volumes para PDFs e JSONs extraídos
VOLUME [ "/app/Documents", "/app/ExtractedDocuments" ]
# Entry point
ENTRYPOINT ["dotnet", "AzureDocIntelligence.dll"]