2020-12-01 02:13:00 +08:00
|
|
|
FROM php:7.4-fpm
|
2018-02-27 06:59:21 +08:00
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
git unzip wget zip curl mlocate \
|
2020-12-01 02:13:00 +08:00
|
|
|
libicu-dev libpcre3-dev libicu-dev \
|
2018-02-27 06:59:21 +08:00
|
|
|
build-essential chrpath libssl-dev \
|
|
|
|
libxft-dev libfreetype6 libfreetype6-dev \
|
|
|
|
libpng-dev libjpeg62-turbo-dev \
|
2020-11-10 04:46:22 +08:00
|
|
|
libfontconfig1 libfontconfig1-dev libzip-dev libldap2-dev
|
2018-02-27 06:59:21 +08:00
|
|
|
|
2020-12-01 02:13:00 +08:00
|
|
|
RUN pecl install xxtea-1.0.11 && \
|
|
|
|
docker-php-ext-enable xxtea
|
2019-03-28 06:01:26 +08:00
|
|
|
|
2018-02-27 06:59:21 +08:00
|
|
|
RUN docker-php-ext-configure intl && \
|
2020-11-10 04:46:22 +08:00
|
|
|
docker-php-ext-configure ldap && \
|
2022-01-19 09:46:03 +08:00
|
|
|
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && \
|
2020-11-10 04:46:22 +08:00
|
|
|
docker-php-ext-install opcache pdo_mysql zip intl gd ldap
|
2018-02-27 06:59:21 +08:00
|
|
|
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
|
|
|
RUN curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar && chmod +x /usr/local/bin/phpunit
|
|
|
|
|
|
|
|
RUN apt-get -y autoremove && apt-get clean
|
|
|
|
|
|
|
|
RUN sed -i '/^;catch_workers_output/ccatch_workers_output = yes' '/usr/local/etc/php-fpm.d/www.conf'
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
CMD ["php-fpm"]
|