Skip to content

Commit 51eca15

Browse files
authored
Merge pull request #105 from Crixu/update-dockerfile
Updated dockerfile to latest
2 parents 30728d0 + ede005f commit 51eca15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start with the latest WordPress image.
2-
FROM wordpress:5.5.1-php7.4
2+
FROM wordpress:php8.1
33

44
# Set up nodejs PPA
55
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
@@ -25,7 +25,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/
2525

2626
ENV PATH="/root/.composer/vendor/bin::${PATH}"
2727

28-
RUN composer global require "phpunit/phpunit=5.7.*"
28+
RUN composer global require "phpunit/phpunit=8.*"
2929
RUN composer global require "dealerdirect/phpcodesniffer-composer-installer"
3030
RUN composer global require wp-coding-standards/wpcs
3131
RUN phpcs --config-set installed_paths /root/.composer/vendor/wp-coding-standards/wpcs

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ services:
1313
volumes:
1414
- ./:/var/www/html/wp-content/plugins/wp-unit-test-reporter
1515
environment:
16-
WORDPRESS_DB_PASSWORD: password
16+
- WORDPRESS_DB_NAME=wordpress
17+
- WORDPRESS_DB_USER=root
18+
- WORDPRESS_DB_PASSWORD=password
1719
db:
1820
image: mysql
1921
restart: always

0 commit comments

Comments
 (0)