✨ feat(php-unofficial): update php versions and switch to pre-built images
- update php 8.1.32 to 8.1.33 with bookworm base image - update php 8.4.8 to 8.4.13 with bookworm base image - switch from local docker builds to pre-built ghcr.io images for all versions - maintain existing configuration files and environment samples
This commit is contained in:
parent
2c5ac82ec0
commit
833dcbd3cf
|
|
@ -1,8 +1,6 @@
|
||||||
services:
|
services:
|
||||||
php74a:
|
php74a:
|
||||||
build:
|
image: ghcr.io/pooneyy/php:7.4.33-fpm-alpine-php-unofficial
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
services:
|
services:
|
||||||
php74:
|
php74:
|
||||||
build:
|
image: ghcr.io/pooneyy/php:7.4.33-fpm-php-unofficial
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#Reference Links :https://github.com/docker-library/php/issues/926#issuecomment-567230723
|
#Reference Links :https://github.com/docker-library/php/issues/926#issuecomment-567230723
|
||||||
|
|
||||||
FROM php:8.1.33-fpm
|
FROM php:8.1.33-fpm-bookworm
|
||||||
|
|
||||||
ARG UNAME=www-data
|
ARG UNAME=www-data
|
||||||
ARG UGROUP=www-data
|
ARG UGROUP=www-data
|
||||||
|
|
@ -91,5 +91,3 @@ RUN docker-php-ext-enable imagick
|
||||||
RUN echo "extension=redis.so" >> /usr/local/etc/php/php.ini
|
RUN echo "extension=redis.so" >> /usr/local/etc/php/php.ini
|
||||||
|
|
||||||
WORKDIR /www
|
WORKDIR /www
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
services:
|
services:
|
||||||
php81:
|
php81:
|
||||||
build:
|
image: ghcr.io/pooneyy/php:8.1.33-fpm-bookworm-php-unofficial
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#Reference Links :https://github.com/docker-library/php/issues/926#issuecomment-567230723
|
#Reference Links :https://github.com/docker-library/php/issues/926#issuecomment-567230723
|
||||||
|
|
||||||
FROM php:8.4.13-fpm
|
FROM php:8.4.13-fpm-bookworm
|
||||||
|
|
||||||
ARG UNAME=www-data
|
ARG UNAME=www-data
|
||||||
ARG UGROUP=www-data
|
ARG UGROUP=www-data
|
||||||
|
|
@ -42,19 +42,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libicu-dev && \
|
libicu-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# memcached
|
# memcached
|
||||||
RUN pecl install memcached
|
RUN pecl install memcached && \
|
||||||
RUN docker-php-ext-enable memcached
|
docker-php-ext-enable memcached
|
||||||
|
|
||||||
# mcrypt
|
# mcrypt
|
||||||
RUN pecl install mcrypt
|
RUN pecl install mcrypt && \
|
||||||
RUN docker-php-ext-enable mcrypt
|
docker-php-ext-enable mcrypt
|
||||||
|
|
||||||
# redis
|
# redis
|
||||||
RUN pecl install redis
|
RUN pecl install redis && \
|
||||||
RUN docker-php-ext-enable redis
|
docker-php-ext-enable redis
|
||||||
|
|
||||||
|
# imap
|
||||||
|
RUN pecl install imap && \
|
||||||
|
docker-php-ext-enable imap
|
||||||
|
|
||||||
#pecl temporarily does not support PHP8.1 api installation rar
|
#pecl temporarily does not support PHP8.1 api installation rar
|
||||||
#Reference Links :https://stackoverflow.com/questions/73564424/error-while-installing-php-rar-extension-on-ubuntu-server
|
#Reference Links :https://stackoverflow.com/questions/73564424/error-while-installing-php-rar-extension-on-ubuntu-server
|
||||||
|
|
@ -68,14 +70,12 @@ RUN docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg --with-w
|
||||||
&& docker-php-ext-configure mysqli --with-mysqli=mysqlnd \
|
&& docker-php-ext-configure mysqli --with-mysqli=mysqlnd \
|
||||||
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
|
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
|
||||||
&& docker-php-ext-configure zip \
|
&& docker-php-ext-configure zip \
|
||||||
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
|
||||||
&& docker-php-ext-install -j "$(nproc)" \
|
&& docker-php-ext-install -j "$(nproc)" \
|
||||||
gd \
|
gd \
|
||||||
intl \
|
intl \
|
||||||
mysqli \
|
mysqli \
|
||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
zip \
|
zip \
|
||||||
imap \
|
|
||||||
fileinfo \
|
fileinfo \
|
||||||
xsl \
|
xsl \
|
||||||
bcmath \
|
bcmath \
|
||||||
|
|
@ -91,5 +91,3 @@ RUN docker-php-ext-enable imagick
|
||||||
RUN echo "extension=redis.so" >> /usr/local/etc/php/php.ini
|
RUN echo "extension=redis.so" >> /usr/local/etc/php/php.ini
|
||||||
|
|
||||||
WORKDIR /www
|
WORKDIR /www
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
services:
|
services:
|
||||||
php81:
|
php84:
|
||||||
build:
|
image: ghcr.io/pooneyy/php:8.4.13-fpm-bookworm-php-unofficial
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
Loading…
Reference in New Issue