2020-03-01 20:51:14 +00:00
|
|
|
FROM php:fpm-alpine
|
|
|
|
|
2020-07-10 15:03:00 +01:00
|
|
|
RUN apk update && apk add git gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
|
2020-05-07 22:56:39 +01:00
|
|
|
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
|
2020-03-01 20:51:14 +00:00
|
|
|
|
2020-05-07 22:56:39 +01:00
|
|
|
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql"
|
2020-03-01 20:51:14 +00:00
|
|
|
|
2020-03-01 23:55:54 +00:00
|
|
|
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
|
2020-07-11 23:41:52 +01:00
|
|
|
&& cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds \
|
|
|
|
&& phpize && ./configure && make && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/msgpack/msgpack-php && cd msgpack-php \
|
|
|
|
&& phpize && ./configure && make && make install \
|
|
|
|
&& cd /tmp && git clone https://github.com/phpredis/phpredis && cd phpredis \
|
2020-07-16 00:59:50 +01:00
|
|
|
&& phpize && ./configure --enable-redis-msgpack --enable-redis-lz4 && make && make install \
|
2020-03-01 23:55:54 +00:00
|
|
|
&& rm -rf /usr/share/php7 \
|
|
|
|
&& rm -rf /tmp/* \
|
2020-05-05 02:23:55 +01:00
|
|
|
&& apk del .phpize-deps > /dev/null
|
2020-03-01 23:55:54 +00:00
|
|
|
|
2020-07-11 23:41:52 +01:00
|
|
|
RUN docker-php-ext-install ${exts} && docker-php-ext-enable ds msgpack redis
|
2020-05-06 16:32:07 +01:00
|
|
|
|
|
|
|
WORKDIR /var/www/social
|