Use Debian Bullseye and remove wkhtmltopdf

This commit is contained in:
akp 2024-05-12 13:39:11 +01:00
parent 81cefc092b
commit 8a56f9884c
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755
2 changed files with 2 additions and 12 deletions

View file

@ -7,7 +7,7 @@ RUN set -x; \
&& tar xvf bookstack.tar.gz -C /bookstack --strip-components=1 \
&& rm bookstack.tar.gz
FROM php:8.3-apache-buster as final
FROM php:8.3-apache-bullseye as final
RUN set -x; \
apt-get update \
&& apt-get install -y --no-install-recommends \
@ -27,11 +27,6 @@ RUN set -x; \
curl \
libzip-dev \
unzip \
&& 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" \
&& chmod a+x "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& apt-get install -y "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& rm "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j$(nproc) ldap \

View file

@ -7,7 +7,7 @@ RUN set -x; \
&& tar xvf bookstack.tar.gz -C /bookstack --strip-components=1 \
&& rm bookstack.tar.gz
FROM php:8.3-apache-buster as final
FROM php:8.3-apache-bullseye as final
RUN set -x; \
apt-get update \
&& apt-get install -y --no-install-recommends \
@ -27,11 +27,6 @@ RUN set -x; \
curl \
libzip-dev \
unzip \
&& 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" \
&& chmod a+x "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& apt-get install -y "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& rm "./wkhtmltox_0.12.6-1.buster_${arch}.deb" \
&& docker-php-ext-install -j$(nproc) dom pdo pdo_mysql zip tidy \
&& docker-php-ext-configure ldap \
&& docker-php-ext-install -j$(nproc) ldap \