1 FROM microsoft/dotnet:2.2.100-preview3-sdk AS build-env
4 # Copy csproj and restore as distinct layers
8 # Copy everything else and build
10 RUN dotnet publish -c Release -o out
13 FROM microsoft/dotnet:2.2.0-preview3-aspnetcore-runtime-alpine
15 COPY --from=build-env /app/out .
16 ENTRYPOINT ["dotnet", "PdfService.dll"]