Fix wkhtmltodf and wp-cli installation

This commit is contained in:
dvlbot
2022-12-14 11:35:06 +01:00
parent a1f7c0ccdd
commit d4b1fb1e9e
15 changed files with 52 additions and 24 deletions

View File

@@ -271,6 +271,7 @@ RUN set -eux \
dos2unix \
file \
fontconfig \
less \
libfontenc1 \
libxfont2 \
libxrender1 \
@@ -615,8 +616,8 @@ RUN set -eux \
&& OS_RELEASE="buster" \
&& DEB_HOST_ARCH="$( dpkg-architecture --query DEB_HOST_ARCH )" \
&& WK_URL="$( \
curl -sSL -L --fail https://api.github.com/repos/wkhtmltopdf/packaging/releases \
| awk -F\" "/wkhtmltopdf.*.${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
curl -sS -L --fail 'https://wkhtmltopdf.org/downloads.html' \
| awk -F'"' "/wkhtmltopdf.*${OS_RELEASE}_${DEB_HOST_ARCH}\.deb/{print \$(NF-1)}" \
| head -1 \
)" \
&& echo "URL: ${WK_URL}" \
@@ -685,6 +686,7 @@ RUN set -eux \
dos2unix \
file \
fontconfig \
less \
libfontenc1 \
libxfont2 \
libxrender1 \