Skip to content

Instantly share code, notes, and snippets.

@webarthur
Created October 30, 2016 23:01
Show Gist options
  • Select an option

  • Save webarthur/56dc94d9d4a4c80e6ddae9a20e6f77cd to your computer and use it in GitHub Desktop.

Select an option

Save webarthur/56dc94d9d4a4c80e6ddae9a20e6f77cd to your computer and use it in GitHub Desktop.
Dockerfile para LAMP/WordPress
FROM php:5.6-apache
# instala modulos do Apache
RUN a2enmod headers \
&& a2enmod rewrite
# instala extensões do PHP5
RUN apt-get update && apt-get install -y libmcrypt-dev libpng12-dev libjpeg-dev libpq-dev imagemagick libxml2-dev libfreetype6-dev\
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-php-config=/usr/local/bin/php-config --with-freetype-dir=/usr/ --enable-gd-native-ttf \
&& docker-php-ext-install gd mbstring pdo pdo_mysql zip exif soap mcrypt\
&& pecl install memcache-3.0.8 && echo "extension=memcache.so" > /usr/local/etc/php/conf.d/docker-php-ext-memcache.ini; \
rm -rvf /usr/local/etc/php/conf.d/docker-php-ext-pdo.ini; \
rm -rvf /usr/local/etc/php/conf.d/docker-php-ext-curl.ini; \
rm -rf /tmp/*
# instala driver mysql
RUN docker-php-ext-install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment