Skip to content

Commit

Permalink
devops: Docker configurations updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Nov 6, 2024
1 parent 8b25dcb commit 361c31e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
ARG PHP_VERSION
FROM wordpress:php${PHP_VERSION}-apache

ARG XDEBUG_VERSION=2.9.6

RUN apt-get update; \
apt-get install -y --no-install-recommends \
# WP-CLI dependencies.
Expand All @@ -13,7 +11,7 @@ RUN apt-get update; \
wget;

# Setup xdebug. The latest version supported by PHP 5.6 is 2.5.5.
RUN pecl install "xdebug-${XDEBUG_VERSION}"; \
RUN pecl install xdebug; \
docker-php-ext-enable xdebug; \
echo "xdebug.default_enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
echo "xdebug.remote_autostart = 0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION:-8.0}
PHP_VERSION: ${PHP_VERSION:-8.3}
volumes:
- .:/var/www/html/wp-content/plugins/wp-graphql-woocommerce
- ./codeception.dist.yml:/var/www/html/wp-content/plugins/wp-graphql-woocommerce/codeception.yml
Expand Down

0 comments on commit 361c31e

Please sign in to comment.