Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Last active February 3, 2018 15:14
Show Gist options
  • Save msfidelis/d76d73667353e08f4c6511ea9eb75e26 to your computer and use it in GitHub Desktop.
Save msfidelis/d76d73667353e08f4c6511ea9eb75e26 to your computer and use it in GitHub Desktop.
FROM php:7.2.1-fpm
MAINTAINER Matheus Fidelis <[email protected]>
RUN echo 'deb http://httpredir.debian.org/debian jessie contrib' >> /etc/apt/sources.list
RUN apt-get update
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y --force-yes libssl-dev curl libcurl4-gnutls-dev libxml2-dev libicu-dev libmcrypt4 libmemcached11 openssl
#CONFIGURAÇÕES DO OPCACHE
RUN docker-php-ext-install opcache
#CONFIGURAÇÕES DO APCU
RUN pecl install apcu-5.1.5 && docker-php-ext-enable apcu
#LIBS EXTRAS
RUN docker-php-ext-install bcmath
RUN apt-get install -y libbz2-dev
RUN docker-php-ext-install bz2
RUN docker-php-ext-install mbstring
RUN apt-get install -y libpq-dev
RUN apt-get install -y libicu-dev
RUN docker-php-ext-install intl
#GD
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng16-16
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install gd
#PDO - CUSTOMIZAR A SEU DISPOR
RUN docker-php-ext-install pdo_mysql
EXPOSE 9000
CMD ["php-fpm"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment