Skip to content

Commit 4180dca

Browse files
authored
Merge pull request jguyomard#5 from jguyomard/feature/php-7.2
Add PHP 7.2
2 parents 910427a + b5d2265 commit 4180dca

4 files changed

Lines changed: 39 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ services:
55

66
script:
77
- docker build -t test/php:7.1 php/7.1/
8+
- docker build -t test/php:7.2 php/7.2/
89
- docker build -t test/nginx:1.13 nginx/1.13/
910
- docker build -t test/capistrano:3.9 capistrano/3.9/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker-compose exec php $yourCommandHere
3131
These docker images are configured in `docker-compose.yml` file.
3232
You can comment or uncomment some services according to your project.
3333

34-
* [`jguyomard/laravel-php:7.1`](https://hub.docker.com/r/jguyomard/laravel-php/) (this docker image extends `php:7.1-fpm-alpine` to add some PHP extensions) ;
34+
* [`jguyomard/laravel-php:7.2`](https://hub.docker.com/r/jguyomard/laravel-php/) (this docker image extends `php:7.2-fpm-alpine` to add some PHP extensions) ;
3535
* [`jguyomard/laravel-nginx:1.13`](https://hub.docker.com/r/jguyomard/laravel-nginx/) (this docker image extends `nginx:1.13-alpine` to add Laravel vhost) ;
3636
* `mysql:5.7` ;
3737
* `postgres:9.6-alpine` ;

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22
services:
33

44
php:
5-
image: jguyomard/laravel-php:7.1
5+
image: jguyomard/laravel-php:7.2
66
volumes:
77
- ./:/var/www/
88
- $HOME/.composer/:$HOME/.composer/

php/7.2/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM php:7.2-fpm-alpine
2+
3+
MAINTAINER JG <julien@mangue.eu>
4+
5+
RUN apk add --no-cache --virtual .build-deps \
6+
$PHPIZE_DEPS \
7+
curl-dev \
8+
imagemagick-dev \
9+
libtool \
10+
libxml2-dev \
11+
postgresql-dev \
12+
sqlite-dev \
13+
&& apk add --no-cache \
14+
curl \
15+
git \
16+
imagemagick \
17+
mysql-client \
18+
postgresql-libs \
19+
&& pecl install imagick \
20+
&& docker-php-ext-enable imagick \
21+
&& docker-php-ext-install \
22+
curl \
23+
iconv \
24+
mbstring \
25+
pdo \
26+
pdo_mysql \
27+
pdo_pgsql \
28+
pdo_sqlite \
29+
pcntl \
30+
tokenizer \
31+
xml \
32+
zip \
33+
&& curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
34+
&& apk del -f .build-deps
35+
36+
WORKDIR /var/www

0 commit comments

Comments
 (0)