Pārlūkot izejas kodu

add wkhtmltopdf

robert2206 8 gadi atpakaļ
vecāks
revīzija
94455ea4bf
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      Dockerfile

+ 7 - 0
Dockerfile

@@ -9,6 +9,13 @@ RUN apk add --update nodejs \
     && ln -s `which nodejs` /bin/node \
     && ln -s `which nodejs` /bin/node \
     && ln -s `which lessc` /bin/lessc
     && ln -s `which lessc` /bin/lessc
 
 
+# Install Wk<html>TOpdf
+RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing wkhtmltopdf
+RUN apk add --no-cache xvfb ttf-dejavu ttf-freefont fontconfig dbus
+#COPY bin/wkhtmltox.sh /usr/local/bin/wkhtmltoimage
+#RUN ln /usr/local/bin/wkhtmltoimage /usr/local/bin/wkhtmltopdf
+
+
 # Install Odoo and it's dependencies in one go
 # Install Odoo and it's dependencies in one go
 ENV ODOO_BRANCH 8.0
 ENV ODOO_BRANCH 8.0