Initial Commit
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
ARG PHP_VERSION
|
||||
|
||||
FROM php:${PHP_VERSION}-fpm-alpine
|
||||
|
||||
WORKDIR /var/www
|
||||
|
||||
COPY docker/php/xdebug.ini /usr/local/etc/php/conf.d
|
||||
|
||||
RUN apk add --no-cache $PHPIZE_DEPS \
|
||||
&& pecl install xdebug \
|
||||
&& docker-php-ext-install pdo pdo_mysql pcntl json posix calendar -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
&& echo "xdebug.remote_host="`/sbin/ip route|awk '/default/ { print $3 }'` >> /usr/local/etc/php/conf.d/xdebug.ini
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
[Xdebug]
|
||||
xdebug.remote_enable = true
|
||||
xdebug.remote_autostart = false
|
||||
xdebug.remote_port = 9000
|
||||
xdebug.remote_connect_back = false
|
||||
xdebug.idekey = PHPSTORM
|
||||
Reference in New Issue
Block a user