Public Repository

Last pushed: 4 months ago
Short Description
Custom php:5.6 docker image for Freefri
Full Description

FROM php:5.6

Install dependencies

RUN apt-get update -yqq
RUN apt-get install git -yqq
RUN apt-get install wget -yqq
RUN apt-get install libicu-dev -yqq
RUN apt-get install php5-mysql -yqq
RUN apt-get install mysql-client -yqq
RUN apt-get install libmcrypt-dev -yqq
RUN apt-get install libpng12-dev libjpeg62-turbo-dev libfreetype6-dev -yqq
RUN apt-get install libmemcached-dev zlib1g-dev -yqq
RUN apt-get install memcached -yqq

RUN /etc/init.d/memcached start

RUN pecl install xdebug
RUN docker-php-ext-enable xdebug

RUN pecl install apcu-4.0.11
RUN docker-php-ext-enable apcu

RUN pecl install memcache-2.2.7
RUN docker-php-ext-enable memcache

Install more extensions

RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install gd
RUN docker-php-ext-install intl
RUN docker-php-ext-install exif
RUN docker-php-ext-install mcrypt

EXPOSE 80 443

Install composer globally

RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php'); unlink('installer.sig');"
RUN mv composer.phar /usr/local/bin/composer

Docker Pull Command
Owner
freefri

Comments (0)