Last active
October 9, 2018 14:41
-
-
Save cristiano-pacheco/2c4320a14dc6fb2bd8a43ed7e99b3631 to your computer and use it in GitHub Desktop.
Dockerfile RD
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-fpm | |
RUN apt-get update && apt-get install -y \ | |
libmcrypt-dev \ | |
libicu-dev \ | |
mysql-client \ | |
zlib1g-dev \ | |
&& docker-php-ext-install pdo_mysql \ | |
iconv \ | |
mcrypt \ | |
intl \ | |
opcache \ | |
mbstring \ | |
zip | |
# Install Mongo | |
RUN apt-get update && apt-get install -y libssl-dev | |
RUN pecl channel-update pecl.php.net \ | |
&& pecl install mongodb-1.5.1 \ | |
&& docker-php-ext-enable mongodb | |
# PHP geoip module | |
# RUN apt-get update \ | |
# && apt-get install -y --no-install-recommends \ | |
# libgeoip-dev \ | |
# && pecl install geoip \ | |
# && echo "extension=geoip.so" > /usr/local/etc/php/conf.d/ext-geoip.ini | |
# Install PHP BCMath | |
RUN docker-php-ext-install bcmath | |
# Install PHP Soap | |
RUN apt-get install -y libxml2-dev && \ | |
docker-php-ext-install soap | |
# Install PHP GD | |
RUN apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libfreetype6-dev | |
RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \ | |
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \ | |
--enable-gd-native-ttf | |
RUN docker-php-ext-install gd | |
# Install PHP Gearman | |
RUN apt-get install -y libgearman-dev && \ | |
pecl install gearman && \ | |
echo extension=gearman.so > /usr/local/etc/php/conf.d/gearman.ini && \ | |
docker-php-ext-install sockets | |
# Install xDebug | |
RUN apt-get update -y && apt-get install -y \ | |
&& pecl channel-update pecl.php.net \ | |
&& pecl install xdebug-2.5.5 \ | |
&& docker-php-ext-enable xdebug | |
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini | |
COPY ./php-custom.ini /usr/local/etc/php/conf.d/php-custom.ini | |
# Install APC Cache | |
RUN pecl install apcu-4.0.11 \ | |
&& echo extension=apcu.so > /usr/local/etc/php/conf.d/apcu.ini | |
# Install MailHog | |
RUN curl -fSL "https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64" -o /usr/local/bin/mailhog \ | |
&& chmod +x /usr/local/bin/mailhog | |
COPY ./mailhog.ini /usr/local/etc/php/conf.d/mailhog.ini | |
# Install Phpunit | |
RUN curl -fSL "https://phar.phpunit.de/phpunit-5.phar" -o /usr/local/bin/phpunit \ | |
&& chmod +x /usr/local/bin/phpunit | |
# Install Composer | |
RUN curl -fSL "https://getcomposer.org/composer.phar" -o /usr/local/bin/composer \ | |
&& chmod +x /usr/local/bin/composer | |
# Install Codesniffer | |
RUN curl -fSL "https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar" -o /usr/local/bin/phpcs \ | |
&& chmod +x /usr/local/bin/phpcs | |
WORKDIR "/storage/droga" | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment