Skip to content

Commit

Permalink
feat: add xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
2898117012 committed Jul 5, 2020
1 parent 94fdcca commit 5a629ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.4.5-apache

RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev \
&& pecl install mcrypt-1.0.3 redis \
&& pecl install mcrypt-1.0.3 redis xdebug-2.5.0 \
&& docker-php-ext-enable mcrypt redis \
&& docker-php-ext-install -j$(nproc) iconv && docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd mysqli pdo_mysql \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ $ docker run --name wordpress -dp 80:80 -v `pwd`:/var/www/html trendsoft/wordpre
## Xdebug 使用

```bash
pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug
docker-php-ext-enable xdebug
```

0 comments on commit 5a629ff

Please sign in to comment.