Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rizqidjamaluddin/ace7ca4881c5ae1e0478970148dea355 to your computer and use it in GitHub Desktop.
Save rizqidjamaluddin/ace7ca4881c5ae1e0478970148dea355 to your computer and use it in GitHub Desktop.
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