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
15 COPY --from=build-env /app/out .
18 # COPY libwkhtmltox.* ./
19 # install additional libaries
21 && apt-get install -y --no-install-recommends \
28 && curl -o /usr/lib/libwkhtmltox.so \
30 https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so
32 ENTRYPOINT ["dotnet", "PdfService.dll"]