Skip to content

Commit

Permalink
Test on PHP 8.2
Browse files Browse the repository at this point in the history
Also adds PHP 7.4 image
  • Loading branch information
gocom committed Dec 9, 2022
1 parent 57906b8 commit 430b87a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
php:
build: ./docker/image/${IMAGE:-php_8_1}
build: ./docker/image/${IMAGE:-php_8_2}
volumes:
- .:/app
- ${COMPOSER_HOME:-$HOME/.composer}:/tmp
Expand Down
16 changes: 16 additions & 0 deletions docker/image/php_7_4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.4-cli

RUN apt-get update && apt-get install -y \
bash \
git \
libzip-dev \
unzip \
zlib1g-dev

RUN pecl install xdebug-3.1.6

RUN docker-php-ext-enable xdebug

COPY --from=composer:2.4 /usr/bin/composer /usr/bin/composer

WORKDIR /app
4 changes: 2 additions & 2 deletions docker/image/php_8_1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ RUN apt-get update && apt-get install -y \
zip \
wget

RUN pecl install xdebug
RUN pecl install xdebug-3.2.0

RUN docker-php-ext-enable xdebug

COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --from=composer:2.4 /usr/bin/composer /usr/bin/composer

WORKDIR /app
16 changes: 16 additions & 0 deletions docker/image/php_8_2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:8.2-cli

RUN apt-get update && apt-get install -y \
bash \
git \
libz-dev \
zip \
wget

RUN pecl install xdebug-3.2.0

RUN docker-php-ext-enable xdebug

COPY --from=composer:2.4 /usr/bin/composer /usr/bin/composer

WORKDIR /app

0 comments on commit 430b87a

Please sign in to comment.