Skip to content

Commit 28050fd

Browse files
committed
Add phpspec, phpstan, php-cs-fixer and composer to docker
1 parent 78011f1 commit 28050fd

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docker-compose.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
services:
2-
php:
2+
php: &php
33
image: php:8.3-cli-alpine
44
volumes:
55
- .:/app
66
working_dir: /app
7+
8+
phpspec:
9+
<<: *php
10+
entrypoint: vendor/bin/phpspec
11+
command: run
12+
13+
phpstan:
14+
<<: *php
15+
entrypoint: vendor/bin/phpstan
16+
17+
php-cs-fixer:
18+
<<: *php
19+
entrypoint: vendor/bin/php-cs-fixer fix
20+
21+
composer:
22+
image: composer:latest
23+
volumes:
24+
- .:/app
25+
working_dir: /app

0 commit comments

Comments
 (0)