diff --git a/Dockerfile b/Dockerfile index 2355c8f..ba6f09e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/README.md b/README.md index faf88cb..e0402b3 100644 --- a/README.md +++ b/README.md @@ -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 ```