Created
October 30, 2016 23:01
-
-
Save webarthur/56dc94d9d4a4c80e6ddae9a20e6f77cd to your computer and use it in GitHub Desktop.
Dockerfile para LAMP/WordPress
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: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