2021-02-20 22:42:28 +00:00
|
|
|
FROM php:8-fpm-alpine
|
2020-03-01 20:51:14 +00:00
|
|
|
|
2021-04-16 16:52:10 +01:00
|
|
|
RUN apk update && apk add git autoconf make gcc g++ file gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
|
2021-08-18 21:20:25 +01:00
|
|
|
mariadb-dev mariadb-client postgresql-dev postgresql-client vips-dev composer ffmpeg > /dev/null
|
2020-03-01 20:51:14 +00:00
|
|
|
|
2021-01-31 18:15:28 +00:00
|
|
|
ARG MAKEFLAGS="-j$(cat /proc/cpuinfo | grep processor | wc -l)"
|
2020-03-01 20:51:14 +00:00
|
|
|
|
2022-01-17 22:23:23 +00:00
|
|
|
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS
|
|
|
|
|
|
|
|
RUN docker-php-ext-install bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql
|
|
|
|
|
|
|
|
RUN cd /tmp && git clone https://github.com/krakjoe/apcu && cd apcu && phpize && ./configure --enable-apcu && make install
|
|
|
|
RUN cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds && phpize && ./configure && make install
|
|
|
|
RUN cd /tmp && git clone https://github.com/msgpack/msgpack-php && cd msgpack-php && phpize && ./configure && make install
|
|
|
|
RUN cd /tmp && git clone https://github.com/lz4/lz4 && cd lz4 && make install
|
|
|
|
RUN cd /tmp && git clone https://github.com/phpredis/phpredis && cd phpredis && phpize && ./configure --enable-redis-msgpack --enable-redis-lz4 --with-liblz4=yes && make install
|
|
|
|
RUN cd /tmp && git clone https://github.com/libvips/php-vips-ext && cd php-vips-ext && phpize && ./configure && make install
|
|
|
|
|
|
|
|
RUN apk add --no-cache ocaml && cd /tmp && git clone https://github.com/dlitz/texvc.git && cd texvc && make && cp texvc /usr/local/bin/texvc
|
|
|
|
|
|
|
|
RUN docker-php-ext-enable opcache ds msgpack redis apcu vips
|
|
|
|
|
|
|
|
RUN rm -rf /usr/share/php7 && rm -rf /tmp/* && apk del .phpize-deps gcc g++ autoconf > /dev/null
|
2020-05-06 16:32:07 +01:00
|
|
|
|
|
|
|
WORKDIR /var/www/social
|