You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.3 KiB

FROM php:7.4-fpm-alpine
# Add dependencies
RUN apk add --update --no-cache --virtual .dd-build-deps oniguruma-dev zlib-dev libzip-dev libpng-dev libwebp-dev libjpeg-turbo-dev freetype-dev libgd libzip libpng libjpeg libpq libxml2 libxml2-dev supervisor $PHPIZE_DEPS
# Add php-apc support
RUN pecl install apcu \
&& pecl install apcu_bc-1.0.5 \
&& docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini \
&& docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini
# Install php libraries
RUN docker-php-ext-install sockets exif opcache xml soap mbstring pdo_mysql zip sysvsem \
&& docker-php-ext-install bcmath
# Add Xdebug
RUN pecl install xdebug-2.8.1 \
&& docker-php-ext-enable xdebug
# Clear
RUN pecl clear-cache
#RUN apk del .dd-build-deps
# Install intl extension
RUN apk add --no-cache \
icu-dev \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-enable intl \
&& rm -rf /tmp/*
# fix work iconv library with alphine
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted gnu-libiconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
# Add config
ADD conf/20-xdebug.ini $PHP_INI_DIR/conf.d/20-xdebug.ini
ADD conf/php.ini $PHP_INI_DIR/conf.d/php.ini
WORKDIR /var/www