diff --git a/Dockerfile-wkhtmltopdf b/Dockerfile-wkhtmltopdf new file mode 100644 index 0000000..a59e9e6 --- /dev/null +++ b/Dockerfile-wkhtmltopdf @@ -0,0 +1,19 @@ +FROM debian:bullseye +# About +LABEL maintainer="SoloConLinux - Luis Gu:Lo " +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"]