Skip to content

Commit

Permalink
added check for current php version for xdebug because its currently …
Browse files Browse the repository at this point in the history
…not compatible with php 8.3
  • Loading branch information
rene-mueller committed Nov 30, 2023
1 parent c0179a7 commit bf24c7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ COPY .bashrc /root/.bashrc
COPY --chown=www-data:www-data .bashrc /var/www/.bashrc

# install xdebug
RUN docker-php-source extract \
# TODO remove if when xdebug is ready
RUN if dpkg --compare-versions "$PHP_VERSION" "lt" "8.3.0"; then \
docker-php-source extract \
&& docker-php-ext-get xdebug 3.2.1 \
&& docker-php-ext-install xdebug \
&& docker-php-source delete \
# make tmp directory for xdebug results (profiler, ..)
mkdir -m 0777 /var/www/tmp
mkdir -m 0777 /var/www/tmp \
; fi


USER www-data

Expand Down

0 comments on commit bf24c7e

Please sign in to comment.