Created
April 7, 2017 17:54
-
-
Save rizqidjamaluddin/ace7ca4881c5ae1e0478970148dea355 to your computer and use it in GitHub Desktop.
This file contains 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.1-fpm | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
libssl-dev \ | |
zlib1g-dev \ | |
libicu-dev \ | |
libmcrypt-dev \ | |
libmagickwand-dev \ | |
libmagickcore-dev | |
RUN docker-php-ext-configure intl | |
RUN docker-php-ext-install pdo_mysql mbstring intl opcache mcrypt | |
RUN pecl install imagick \ | |
&& docker-php-ext-enable imagick | |
# Install xdebug | |
RUN pecl install xdebug \ | |
&& docker-php-ext-enable xdebug | |
RUN usermod -u 1000 www-data | |
WORKDIR /var/www/html | |
CMD ["php-fpm"] | |
EXPOSE 9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment