Created
July 6, 2020 14:51
-
-
Save berkayakcay/9aef0ea0c6f95a86a584cda5c22f73e6 to your computer and use it in GitHub Desktop.
dotnet runtime 3.1.4 buster-slim with SUPERVISORD, WKHTMLTOPDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.4-buster-slim | |
# # # # # # # # # # # # # # # # # # # # # # # | |
# INSTALL SUPERVISORD | |
RUN set -xe && \ | |
apt-get update && apt-get install -y --no-install-recommends \ | |
supervisor && \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# # # # # # # # # # # # # # # # # # # # # # # | |
# INSTALL WKHTMLTOPDF | |
ENV WKHTMLTOX wkhtmltox_0.12.5-1.buster_amd64.deb | |
ENV BUILD_PACKAGES build-essential | |
ENV MAIN_PACKAGES fontconfig libfreetype6 libjpeg62-turbo libxext6 libpng16-16 libx11-6 libxcb1 libxrender1 xfonts-75dpi xfonts-base | |
COPY deps/$WKHTMLTOX / | |
RUN set -xe \ | |
&& apt-get update -qq \ | |
&& apt-get install --no-install-recommends -yq $BUILD_PACKAGES $MAIN_PACKAGES \ | |
&& dpkg -i ${WKHTMLTOX} \ | |
&& apt-get remove -y $BUILD_PACKAGES \ | |
&& apt-get autoremove -y \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | |
&& rm -rf ${WKHTMLTOX} \ | |
&& truncate -s 0 /var/log/*log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment