1 FROM microsoft/dotnet:2.2-sdk AS build-env
5 # Copy csproj and restore as distinct layers
9 # Copy everything else and build
11 RUN dotnet publish -c Release -o out
14 FROM microsoft/dotnet:2.2-aspnetcore-runtime
16 COPY --from=build-env /app/out .
20 ENV ASPNETCORE_URLS=http://+:8083
23 # COPY libwkhtmltox.* ./
24 # install additional libaries
26 && apt-get install -y --no-install-recommends \
33 && curl -o /usr/lib/libwkhtmltox.so \
35 https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so
38 COPY assets/*.* ./assets/
39 ENTRYPOINT ["dotnet", "PdfService.dll"]