File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
ARG PHP_VERSION
2
+
3
+ FROM alpine:3.19.1 as php-cs-fixer
4
+
5
+ RUN set -eux; \
6
+ version=3.52.1; \
7
+ \
8
+ apk add --no-cache curl; \
9
+ \
10
+ curl -sSLfo /usr/local/bin/php-cs-fixer \
11
+ https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar; \
12
+ \
13
+ chmod +x /usr/local/bin/php-cs-fixer; \
14
+ :;
15
+
16
+
2
17
FROM php:${PHP_VERSION}-cli
3
18
4
19
RUN docker-php-ext-install pdo
@@ -66,3 +81,5 @@ RUN set -eux; \
66
81
\
67
82
file /bin/ls --mime | grep application/x-executable; \
68
83
:;
84
+
85
+ COPY --from=php-cs-fixer /usr/local/bin/php-cs-fixer /usr/local/bin/php-cs-fixer
Original file line number Diff line number Diff line change 85
85
docker-compose down
86
86
87
87
88
+ Lint
89
+ ----
90
+
91
+ test/bin/lint
92
+
93
+
88
94
Documentation
89
95
-------------
90
96
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -eu
2
+
3
+ docker-compose up -d --build --remove-orphans php74 > /dev/null
4
+ docker-compose exec php74 php-cs-fixer fix
You can’t perform that action at this time.
0 commit comments