Skip to content

Commit

Permalink
HSC-95: Update Wkhtmltopdf package on Odoo Docker image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
enyachoke authored Jun 23, 2022
1 parent 0a72f28 commit 2c1706f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ ARG ODOO_BRANCH=14.0

# Install dependencies
RUN apt update && apt install -y git npm postgresql-client python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev \
libtiff5-dev zlib1g-dev libfreetype6-dev wait-for-it xvfb libfontconfig wkhtmltopdf wget \
liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libpq-dev gettext-base unzip

libtiff5-dev zlib1g-dev libfreetype6-dev wait-for-it xvfb libfontconfig wget \
liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libpq-dev gettext-base unzip xfonts-75dpi xfonts-base
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_${arch}.deb && \
dpkg -i wkhtmltox_0.12.6-1.buster_${arch}.deb && cp /usr/local/bin/wkhtmltopdf /usr/bin && cp /usr/local/bin/wkhtmltoimage /usr/bin
RUN pip install phonenumbers
RUN npm install -g rtlcss

Expand Down

0 comments on commit 2c1706f

Please sign in to comment.