Skip to content

Commit

Permalink
Added composer and xdebug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhartaunik committed Apr 19, 2023
1 parent 9e1a361 commit 7c6e2f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
FROM php:8.1-fpm

RUN docker-php-ext-install mysqli
RUN docker-php-ext-install mysqli

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

RUN pecl install xdebug \
&& docker-php-ext-enable xdebug

COPY conf.d/* $PHP_INI_DIR/conf.d/
2 changes: 2 additions & 0 deletions docker/php/conf.d/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
xdebug.mode=debug
xdebug.client_host=172.17.0.1

0 comments on commit 7c6e2f8

Please sign in to comment.