Skip to content

Commit

Permalink
Use Alpine 3.20 for PHP 8.1 until eol
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Sep 29, 2024
1 parent 1e2b7cd commit 371a94c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ENV PHP_SHORT_VERSION=81
ENV PHP_INSTALL_VERSION=81

RUN sudo -s <<EOF
apk --no-cache add libzip \
apk --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing add libzip \
php81 php81-{curl,fileinfo,iconv,mbstring,opcache,openssl,phar,session,zip} \
php81-pecl-{apcu,imagick,redis,uploadprogress,xdebug}
ln -sfn /usr/bin/php81 /usr/bin/php
Expand Down Expand Up @@ -171,7 +171,7 @@ EOF
FROM final-php AS build-php-fpm-81

RUN sudo -s <<EOF
apk --no-cache add php81-fpm
apk --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing add php81-fpm
ln -sfn /usr/sbin/php-fpm81 /usr/sbin/php-fpm
EOF

Expand Down Expand Up @@ -227,7 +227,7 @@ CMD ["sudo", "-E", "LD_PRELOAD=/usr/lib/preloadable_libiconv.so", "php-fpm", "-F
FROM final-php-fpm AS drupal-php-81

RUN sudo -s <<EOF
apk --no-cache add mysql-client openssh rsync mariadb-connector-c \
apk --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing add mysql-client openssh rsync mariadb-connector-c \
php81-{bcmath,ctype,dom,exif,gd,intl,pdo,pdo_mysql,simplexml,soap,sockets,sodium,tokenizer,xml,xmlreader,xmlwriter}
EOF

Expand Down
2 changes: 1 addition & 1 deletion php/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ target "php" {
target "php-81" {
inherits = ["common", "php"]
args = {
ALPINE_VERSION = "3.19.4"
ALPINE_VERSION = "${ALPINE_VERSION}"
PHP_VERSION = "8.1"
PHP_SHORT_VERSION = "81"
}
Expand Down

0 comments on commit 371a94c

Please sign in to comment.