diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b0b1a4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM php:7.0-fpm + +MAINTAINER Jorge Matricali + +RUN apt-get update && \ + apt-get install -y git unzip +RUN apt-get install -y libpng-dev + +RUN docker-php-ext-install -j$(nproc) pdo +RUN docker-php-ext-install -j$(nproc) pdo_mysql +RUN docker-php-ext-install -j$(nproc) bcmath +RUN docker-php-ext-install -j$(nproc) gd + +RUN curl -O https://codeload.github.com/phalcon/cphalcon/tar.gz/v3.3.1 && \ + tar xvzf v3.3.1 && rm v3.3.1 && \ + cd cphalcon-3.3.1/build && ./install && \ + rm -rf ~/cphalcon-3.3.1 && rm -rf ~/v3.3.1 && \ + docker-php-ext-enable phalcon + +RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ + php composer-setup.php --install-dir=/usr/bin --filename=composer && \ + php -r "unlink('composer-setup.php');" + +RUN curl -L 'https://phar.phpunit.de/phpunit-5.7.phar' > /usr/bin/phpunit57 && \ + chmod a+x /usr/bin/phpunit57 + +RUN apt-get autoremove -y && \ + apt-get autoclean -y && \ + apt-get clean -y + +RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..11ab45a --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# phalcon-container +Docker image based on `php:7.0-fpm` + +### Includes these extensions +* pdo +* pdo_mysql +* bcmath +* gd +* phalcon + +### Includes these tools +* composer +* php-unit 5.7