gnu-social/docker/php/Dockerfile

22 lines
1.3 KiB
Docker
Raw Normal View History

2021-02-20 22:42:28 +00:00
FROM php:8-fpm-alpine
RUN apk update && apk add git autoconf make file gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
2021-01-31 18:15:28 +00:00
ARG MAKEFLAGS="-j$(cat /proc/cpuinfo | grep processor | wc -l)"
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
&& 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 \
&& rm -rf /usr/share/php7 \
&& rm -rf /tmp/* \
&& apk del .phpize-deps > /dev/null
2021-01-31 18:15:28 +00: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
WORKDIR /var/www/social