File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ RUN docker-php-ext-enable pdo_mysql
1717RUN apt-get -y install --fix-missing zip unzip
1818RUN apt-get -y install --fix-missing git
1919
20+ # xdebug
21+ RUN pecl install xdebug
22+ RUN echo "zend_extension=$(find / -name xdebug.so)" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
23+ RUN echo 'xdebug.client_port=9000' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
24+ RUN echo 'xdebug.mode=debug' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
25+ RUN echo 'xdebug.client_host=host.docker.internal' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
26+
2027# Composer
2128COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2229RUN composer self-update --2
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ services:
99 codeigniter4 :
1010 image : atsanna/codeigniter4:latest
1111 container_name : ' codeigniter4'
12+ build :
13+ context : .
1214 ports :
1315 - 80:80
1416 links :
You can’t perform that action at this time.
0 commit comments