mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 01:28:56 +08:00
Enhancement (docker): Add more php extensions
This commit is contained in:
parent
677e1863e5
commit
b58006503c
1 changed files with 72 additions and 0 deletions
|
@ -31,6 +31,14 @@ LABEL org.label-schema.description="SnappyMail webmail client image using nginx,
|
|||
RUN apk add --no-cache ca-certificates nginx supervisor bash
|
||||
|
||||
# Install PHP extensions
|
||||
# apcu
|
||||
RUN set -eux; \
|
||||
apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \
|
||||
pecl install apcu; \
|
||||
docker-php-ext-enable apcu; \
|
||||
docker-php-source delete; \
|
||||
apk del .build-dependencies;
|
||||
|
||||
# gd
|
||||
RUN set -eux; \
|
||||
apk add --no-cache freetype libjpeg-turbo libpng; \
|
||||
|
@ -38,6 +46,18 @@ RUN set -eux; \
|
|||
docker-php-ext-configure gd --with-freetype --with-jpeg; \
|
||||
docker-php-ext-install gd; \
|
||||
apk del .deps
|
||||
|
||||
# gmagick
|
||||
# RUN set -eux; \
|
||||
# apk add --no-cache graphicsmagick libgomp; \
|
||||
# apk add --no-cache --virtual .deps graphicsmagick-dev libtool; \
|
||||
# apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \
|
||||
# pecl install gmagick-2.0.6RC1; \
|
||||
# docker-php-ext-enable gmagick; \
|
||||
# docker-php-source delete; \
|
||||
# apk del .build-dependencies; \
|
||||
# apk del .deps
|
||||
|
||||
# gnupg
|
||||
RUN set -eux; \
|
||||
apk add --no-cache gnupg gpgme; \
|
||||
|
@ -48,6 +68,18 @@ RUN set -eux; \
|
|||
docker-php-source delete; \
|
||||
apk del .build-dependencies; \
|
||||
apk del .deps
|
||||
|
||||
# imagick
|
||||
RUN set -eux; \
|
||||
apk add --no-cache imagemagick libgomp; \
|
||||
apk add --no-cache --virtual .deps imagemagick-dev; \
|
||||
apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \
|
||||
echo | pecl install imagick; \
|
||||
docker-php-ext-enable imagick; \
|
||||
docker-php-source delete; \
|
||||
apk del .build-dependencies; \
|
||||
apk del .deps
|
||||
|
||||
# intl
|
||||
RUN set -eux; \
|
||||
apk add --no-cache icu-libs; \
|
||||
|
@ -55,6 +87,7 @@ RUN set -eux; \
|
|||
docker-php-ext-configure intl; \
|
||||
docker-php-ext-install intl; \
|
||||
apk del .deps
|
||||
|
||||
# ldap
|
||||
RUN set -eux; \
|
||||
apk add --no-cache libldap; \
|
||||
|
@ -62,16 +95,20 @@ RUN set -eux; \
|
|||
docker-php-ext-configure ldap; \
|
||||
docker-php-ext-install ldap; \
|
||||
apk del .deps
|
||||
|
||||
# mysql
|
||||
RUN docker-php-ext-install pdo_mysql
|
||||
|
||||
# opcache
|
||||
RUN docker-php-ext-install opcache
|
||||
|
||||
# postgres
|
||||
RUN set -eux; \
|
||||
apk add --no-cache postgresql-libs; \
|
||||
apk add --no-cache --virtual .deps postgresql-dev; \
|
||||
docker-php-ext-install pdo_pgsql; \
|
||||
apk del .deps
|
||||
|
||||
# redis
|
||||
RUN set -eux; \
|
||||
apk add --no-cache liblzf zstd-libs; \
|
||||
|
@ -84,6 +121,41 @@ RUN set -eux; \
|
|||
docker-php-source delete; \
|
||||
apk del .build-dependencies; \
|
||||
apk del .deps
|
||||
|
||||
# tidy
|
||||
RUN set -eux; \
|
||||
apk add --no-cache tidyhtml; \
|
||||
apk add --no-cache --virtual .deps tidyhtml-dev; \
|
||||
docker-php-ext-install tidy; \
|
||||
apk del .deps
|
||||
|
||||
# uuid
|
||||
RUN set -eux; \
|
||||
apk add --no-cache libuuid; \
|
||||
apk add --no-cache --virtual .deps util-linux-dev; \
|
||||
apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \
|
||||
pecl install uuid; \
|
||||
docker-php-ext-enable uuid; \
|
||||
docker-php-source delete; \
|
||||
apk del .build-dependencies; \
|
||||
apk del .deps
|
||||
|
||||
# xxtea - Manually install php8 compatible version from https://github.com/xxtea/xxtea-pecl master branch
|
||||
RUN set -eux; \
|
||||
apk add --no-cache --virtual .build-dependencies $PHPIZE_DEPS; \
|
||||
wget -q https://github.com/xxtea/xxtea-pecl/tarball/3f5888a29045e12301254151737c5dab4523a1c1 -O xxtea.tar; \
|
||||
echo '9cbfd9c27255767deb26ddedf69e738d401d88ac9762d82c8510f9768842ca18 xxtea.tar' | sha256sum -c -; \
|
||||
tar -C /usr/src -xvf xxtea.tar; \
|
||||
cd /usr/src/xxtea-xxtea-pecl-3f5888a; \
|
||||
phpize; \
|
||||
./configure --with-php-config=/usr/local/bin/php-config --enable-xxtea=yes; \
|
||||
make install; \
|
||||
docker-php-ext-enable xxtea; \
|
||||
cd -; \
|
||||
rm -fv xxtea.tar; \
|
||||
rm -rfv /usr/src/xxtea*; \
|
||||
apk del .build-dependencies;
|
||||
|
||||
# zip
|
||||
RUN set -eux; \
|
||||
apk add --no-cache libzip; \
|
||||
|
|
Loading…
Reference in a new issue