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
15 LABEL maintainer="Fabian Eichhorner <fabian.eichhorner@tuwien.ac.at>"
17 COPY --from=build-env /app/out .
21 ENV ASPNETCORE_URLS=http://+:8083
23 # install pdf libaries
25 && apt-get install -y --no-install-recommends \
32 && curl -o /usr/lib/libwkhtmltox.so \
34 https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so
37 COPY assets/*.* ./assets/
38 ENTRYPOINT ["dotnet", "PdfService.dll"]