Skip to content

Commit

Permalink
v8.3.1
Browse files Browse the repository at this point in the history
- alpine 3.18
- composer 2.6.6
- igbinary
- lz4
- msgpack
- redis (igbinary, zstd, msgpack, lz4)
- uuid
- xdebug
  • Loading branch information
joseluisq committed Jan 2, 2024
1 parent 0e69edc commit 89c1ae6
Showing 1 changed file with 61 additions and 12 deletions.
73 changes: 61 additions & 12 deletions 8.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM php:8.3.0-fpm-alpine3.17
FROM php:8.3.1-fpm-alpine3.18

LABEL Maintainer="Jose Quintana <joseluisq.net>" \
Description="PHP-FPM v8.3 with essential extensions on top of Alpine Linux."

# Composer - https://getcomposer.org/download/
ARG COMPOSER_VERSION="2.6.5"
ARG COMPOSER_SUM="9a18e1a3aadbcb94c1bafd6c4a98ff931f4b43a456ef48575130466e19f05dd6"
ARG COMPOSER_VERSION="2.6.6"
ARG COMPOSER_SUM="72600201c73c7c4b218f1c0511b36d8537963e36aafa244757f52309f885b314"

# Swoole - https://github.com/swoole/swoole-src
ARG SWOOLE_VERSION="5.1.1"
Expand Down Expand Up @@ -38,13 +38,16 @@ RUN set -eux \
libxpm \
libxslt \
libzip \
lz4-libs \
make \
rabbitmq-c \
tidyhtml \
tzdata \
unixodbc \
vips \
yaml
yaml \
zstd-libs \
&& true

#############################################
### Install and enable PHP extensions
Expand Down Expand Up @@ -78,6 +81,7 @@ RUN set -eux \
libxpm-dev \
libxslt-dev \
libzip-dev \
lz4-dev \
openssl-dev \
pcre-dev \
pkgconf \
Expand Down Expand Up @@ -155,10 +159,25 @@ RUN set -eux \
# && docker-php-ext-enable imagick \
# && true \
\
# Install igbinary
&& pecl install igbinary \
&& docker-php-ext-enable igbinary \
\
# Install intl
&& docker-php-ext-install -j$(nproc) intl \
&& true \
\
# Install lz4
&& git clone https://github.com/kjdev/php-ext-lz4 /opt/lz4 \
&& cd /opt/lz4 \
&& git checkout $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1) \
&& phpize \
&& ./configure --enable-lz4 --with-lz4-includedir=/usr \
&& make -j$(nproc) \
&& make install \
&& docker-php-ext-enable lz4 \
&& true \
\
# Install memcache
&& pecl install memcache \
&& docker-php-ext-enable memcache \
Expand All @@ -169,6 +188,11 @@ RUN set -eux \
&& docker-php-ext-enable mongodb \
&& true \
\
# Install msgpack
&& pecl install msgpack \
&& docker-php-ext-enable msgpack \
&& true \
\
# Install mysqli
&& docker-php-ext-install -j$(nproc) mysqli \
&& true \
Expand All @@ -195,9 +219,26 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) pcntl \
&& true \
\
# Install opcache
&& docker-php-ext-install -j$(nproc) opcache \
&& true \
\
# Install pdo_mysql
&& docker-php-ext-configure pdo_mysql --with-zlib-dir=/usr \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
&& true \
\
# Install pdo_dblib
&& docker-php-ext-install -j$(nproc) pdo_dblib \
&& true \
\
# Install pcntl
&& docker-php-ext-install -j$(nproc) pcntl \
&& true \
\
# # Install phalcon
# && git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git \
# && cd cphalcon/build \
# && git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /opt/phalcon \
# && cd /opt/phalcon/build \
# && sh ./install \
# && docker-php-ext-enable phalcon \
# && true \
Expand Down Expand Up @@ -228,7 +269,9 @@ RUN set -eux \
&& true \
\
# Install redis
&& pecl install redis \
&& pecl install --configureoptions \
'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-msgpack="yes" enable-redis-lz4="yes"' \
redis \
&& docker-php-ext-enable redis \
&& true \
\
Expand Down Expand Up @@ -276,15 +319,20 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) tidy \
&& true \
\
# Install uuid
&& pecl install uuid \
&& docker-php-ext-enable uuid \
&& true \
\
# Install xsl
&& docker-php-ext-install -j$(nproc) xsl \
&& true \
\
# # Install xdebug
# && pecl install xdebug \
# && docker-php-ext-enable xdebug \
# && true \
# \
# Install xdebug
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& true \
\
# Install yaml
&& pecl install yaml \
&& docker-php-ext-enable yaml \
Expand All @@ -308,6 +356,7 @@ RUN set -eux \
# Clean up build packages
&& docker-php-source delete \
&& apk del .build-deps \
&& rm -rf /tmp/* \
&& true

RUN set -eux \
Expand Down

0 comments on commit 89c1ae6

Please sign in to comment.