Skip to content

Commit ca21b98

Browse files
committed
Add Dockerfile to run PHPUnit.
1 parent 901b9a8 commit ca21b98

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ARG PHP_VERSION
2+
FROM php:${PHP_VERSION}
3+
4+
RUN apk add --no-cache \
5+
libpng \
6+
libpng-dev \
7+
${PHPIZE_DEPS} \
8+
&& docker-php-ext-install gd \
9+
&& pecl install xdebug-2.5.5 \
10+
&& docker-php-ext-enable xdebug \
11+
&& apk del libpng-dev ${PHPIZE_DEPS}
12+
13+
COPY --from=composer /usr/bin/composer /usr/bin/composer
14+
15+
ENV XDEBUG_MODE coverage
16+
17+
WORKDIR /code
18+
19+
CMD ["php", "./vendor/bin/phpunit"]

0 commit comments

Comments
 (0)