gnu-social/docker/php/Dockerfile

22 lines
1.0 KiB
Docker

FROM php:fpm-alpine
RUN apk update && apk add git gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql"
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
&& 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 \
&& phpize && ./configure --enable-redis-msgpack --enable-redis-lzf && make && make install \
&& rm -rf /usr/share/php7 \
&& rm -rf /tmp/* \
&& apk del .phpize-deps > /dev/null
RUN docker-php-ext-install ${exts} && docker-php-ext-enable ds msgpack redis
WORKDIR /var/www/social