Skip to content

Commit

Permalink
Update Dockerfile for php 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tcampbPPU committed Jun 11, 2024
1 parent 478844c commit 425619f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ RUN apt-get -y update && apt-get -y upgrade \
&& apt-get -y install software-properties-common \
&& add-apt-repository ppa:ondrej/php \
&& apt-get -y update \
&& apt-get -y install php8.2 php8.2-gd php8.2-xml php8.2-soap php8.2-mbstring php8.2-mysql php8.2-pgsql php8.2-dev php8.2-zip php8.2-curl
&& apt-get -y install php8.3 php8.3-gd php8.3-xml php8.3-soap php8.3-mbstring php8.3-mysql php8.3-pgsql php8.3-dev php8.3-zip php8.3-curl

# XDEBUG Setup
RUN echo "xdebug.mode = develop,debug" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.start_with_request = yes" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.client_host = localhost" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.discover_client_host=1" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.client_port = 9003" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.log = /var/log/xdebug.log" >> /etc/php/8.2/cli/conf.d/20-xdebug.ini
RUN echo "xdebug.mode = develop,debug" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.start_with_request = yes" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.client_host = localhost" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.discover_client_host=1" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.client_port = 9003" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini \
&& echo "xdebug.log = /var/log/xdebug.log" >> /etc/php/8.3/cli/conf.d/20-xdebug.ini

RUN touch /var/log/xdebug.log

Expand Down

0 comments on commit 425619f

Please sign in to comment.