Skip to content

Commit

Permalink
+ php7.2 phalcon3.4.0 phpunit7
Browse files Browse the repository at this point in the history
  • Loading branch information
matricali committed Jul 5, 2018
1 parent 1c81a57 commit f0d0431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ 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 && \
RUN curl -O https://codeload.github.com/phalcon/cphalcon/tar.gz/v3.4.0 && \
tar xvzf v3.4.0 && rm v3.4.0 && \
cd cphalcon-3.4.0/build && ./install && \
rm -rf ~/cphalcon-3.4.0 && rm -rf ~/v3.4.0 && \
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 curl -L 'https://phar.phpunit.de/phpunit-7.phar' > /usr/bin/phpunit && \
chmod a+x /usr/bin/phpunit

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# phalcon-container
Docker image based on `php:7.0-fpm`
Docker image based on `php:7.2-fpm`

### Includes these extensions
* pdo
* pdo_mysql
* bcmath
* gd
* phalcon
* phalcon 3.4.0

### Includes these tools
* composer
* php-unit 5.7
* php-unit 7

0 comments on commit f0d0431

Please sign in to comment.