Dockerfile especial con wkhtmltopdf para generar PDFs a partir de paginas Web

This commit is contained in:
Luis GuLo 2022-02-02 04:23:48 +01:00
parent b40d2cbc9c
commit 0664650210

19
Dockerfile-wkhtmltopdf Normal file
View File

@ -0,0 +1,19 @@
FROM debian:bullseye
# About
LABEL maintainer="SoloConLinux - Luis Gu:Lo <luisgulo@soloconlinux.org.es>"
LABEL extrapackages="wkhtmltopdf to generate PDF from Web Pages"
# Todo actualizado
RUN apt -y update; apt -y upgrade
RUN apt -y install php7.4 apache2 vim locales wkhtmltopdf
# Locales para es_ES
RUN sed -i '/es_ES.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG es_ES.UTF-8
ENV LANGUAGE es_ES:es
ENV LC_ALL es_ES.UTF-8
# Web con micro CMS-LuisGulo
WORKDIR /var/www/html
RUN mv index.html debian.html
COPY src/ /var/www/html/
# Lanzar apache
CMD ["/usr/sbin/apachectl","-DFOREGROUND"]