Created
March 4, 2020 17:29
-
-
Save marcossaore/6d3b60592f8c73dbf3cf8b66ae9b7105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-fpm-alpine | |
RUN apk update --no-cache \ | |
&& apk add \ | |
icu-dev \ | |
oniguruma-dev \ | |
tzdata | |
RUN apk add --no-cache --virtual .build-deps \ | |
g++ make autoconf yaml-dev | |
RUN pecl install igbinary-3.1.2 \ | |
pecl install redis-5.1.1 \ | |
pecl install xdebug-2.9.0 | |
RUN docker-php-ext-install intl | |
RUN docker-php-ext-install pcntl | |
RUN docker-php-ext-install pdo_mysql | |
RUN docker-php-ext-install mbstring | |
RUN docker-php-ext-enable igbinary.so | |
RUN docker-php-ext-enable redis.so | |
RUN docker-php-ext-enable xdebug | |
RUN rm -rf /var/cache/apk/* | |
RUN apk del --purge .build-deps | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer | |
COPY php.ini /usr/local/etc/php/php.ini | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment