Dockerfile especial con wkhtmltopdf para generar PDFs a partir de paginas Web
This commit is contained in:
parent
b40d2cbc9c
commit
0664650210
19
Dockerfile-wkhtmltopdf
Normal file
19
Dockerfile-wkhtmltopdf
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user