2021-02-21 07:42:28 +09:00
|
|
|
FROM php:8-fpm-alpine
|
2020-03-02 05:51:14 +09:00
|
|
|
|
2020-07-18 07:13:57 +09:00
|
|
|
RUN apk update && apk add git autoconf make file gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
|
2020-05-08 06:56:39 +09:00
|
|
|
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
|
2020-03-02 05:51:14 +09:00
|
|
|
|
2021-02-01 03:15:28 +09:00
|
|
|
ARG MAKEFLAGS="-j$(cat /proc/cpuinfo | grep processor | wc -l)"
|
2020-03-02 05:51:14 +09:00
|
|
|
|
2020-03-02 08:55:54 +09:00
|
|
|
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
|
2020-07-18 07:13:57 +09:00
|
|
|
&& cd /tmp && git clone https://github.com/krakjoe/apcu && cd apcu && phpize && ./configure --enable-apcu && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds && phpize && ./configure && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/msgpack/msgpack-php && cd msgpack-php && phpize && ./configure && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/lz4/lz4 && cd lz4 && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/phpredis/phpredis && cd phpredis && phpize && ./configure --enable-redis-msgpack --enable-redis-lz4 --with-liblz4=yes && make install \
|
2020-03-02 08:55:54 +09:00
|
|
|
&& rm -rf /usr/share/php7 \
|
|
|
|
&& rm -rf /tmp/* \
|
2020-05-05 10:23:55 +09:00
|
|
|
&& apk del .phpize-deps > /dev/null
|
2020-03-02 08:55:54 +09:00
|
|
|
|
2021-02-01 03:15:28 +09:00
|
|
|
RUN docker-php-ext-install bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql \
|
|
|
|
&& docker-php-ext-enable ds msgpack redis apcu
|
2020-05-07 00:32:07 +09:00
|
|
|
|
|
|
|
WORKDIR /var/www/social
|