add php 8.1 and php-apcu

This commit is contained in:
Pau Capó 2024-05-01 12:18:08 +02:00
parent 7c7d5df177
commit a86cf1ed7b
2 changed files with 12 additions and 5 deletions

View file

@ -57,7 +57,7 @@ RUN apt-get -y install readline-common git zlib1g-dev \
php${PHP_VERSION}-curl php${PHP_VERSION}-fpm php${PHP_VERSION}-gd php${PHP_VERSION}-gmp \ php${PHP_VERSION}-curl php${PHP_VERSION}-fpm php${PHP_VERSION}-gd php${PHP_VERSION}-gmp \
php${PHP_VERSION}-imagick php${PHP_VERSION}-intl php${PHP_VERSION}-mbstring \ php${PHP_VERSION}-imagick php${PHP_VERSION}-intl php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-mysql php${PHP_VERSION}-opcache php${PHP_VERSION}-readline php${PHP_VERSION}-sqlite3 \ php${PHP_VERSION}-mysql php${PHP_VERSION}-opcache php${PHP_VERSION}-readline php${PHP_VERSION}-sqlite3 \
php${PHP_VERSION}-xml php${PHP_VERSION}-yaml php${PHP_VERSION}-zip \ php${PHP_VERSION}-xml php${PHP_VERSION}-yaml php${PHP_VERSION}-zip php${PHP_VERSION}-apcu \
libapache2-mod-php${PHP_VERSION} libapache2-mod-php${PHP_VERSION}
# specific PHP modules for some versions # specific PHP modules for some versions
@ -65,8 +65,8 @@ RUN if [[ "${PHP_VERSION}" == "7.4" ]] ; then apt-get -y install php${PHP_VERSIO
# install wkhtml if needed # install wkhtml if needed
RUN if [[ "${WKHTML}" != "" ]] ; then \ RUN if [[ "${WKHTML}" != "" ]] ; then \
apt-get install -y --no-install-recommends libfreetype6-dev libjpeg62-turbo-dev libpng-dev; \ apt-get install -y --no-install-recommends libfreetype6-dev libjpeg62-turbo-dev libpng-dev fontconfig libfreetype6 libjpeg62-turbo \
apt-get install --no-install-recommends -y fontconfig libfreetype6 libjpeg62-turbo libpng16-16 libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base; \ libpng16-16 libx11-6 libxcb1 libxext6 libxrender1 xfonts-75dpi xfonts-base; \
curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_arm64.deb -o /tmp/wkhtmltox.deb; \ curl -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_arm64.deb -o /tmp/wkhtmltox.deb; \
dpkg -i /tmp/wkhtmltox.deb; \ dpkg -i /tmp/wkhtmltox.deb; \
fi fi

View file

@ -1,7 +1,14 @@
#!/bin/bash #!/bin/bash
PHP_VERSIONS="7.4 8.2" PHP_VERSIONS="7.4 8.1 8.2"
WKHTML="" WKHTML=""
PLATFORMS="linux/arm64/v8,linux/amd64"
# testing
#PHP_VERSIONS="7.4"
#PHP_VERSIONS="8.1"
#PLATFORMS="linux/arm64/v8"
#PLATFORMS="linux/amd64"
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
@ -11,7 +18,7 @@ function build() {
echo "Building ${PACKAGE}" echo "Building ${PACKAGE}"
docker buildx build \ docker buildx build \
--no-cache \ --no-cache \
--platform=linux/arm64/v8,linux/amd64 \ --platform=${PLATFORMS} \
--push \ --push \
-f "${SCRIPT_DIR}/Dockerfile-php" \ -f "${SCRIPT_DIR}/Dockerfile-php" \
-t "git.paucapo.com/server/${PACKAGE}" \ -t "git.paucapo.com/server/${PACKAGE}" \