File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM php:8.1-cli-alpine
1+ ARG phpVersion=8.1
2+
3+ FROM php:${phpVersion}-cli-alpine
24
35COPY --from=composer /usr/bin/composer /usr/local/bin/composer
46
@@ -8,8 +10,10 @@ WORKDIR /tools
810
911RUN composer require laravel/pint
1012
11- ENTRYPOINT [ "/tools/vendor/bin/pint" ]
13+ ENV PATH= "/tools/vendor/bin:$PATH"
1214
1315RUN mkdir /workspace
1416
1517WORKDIR /workspace
18+
19+ CMD [ "pint" ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $ docker run -it --rm -v $PWD:/workspace syncloudsoftech/pinter
1717You can pass options to pint such as a ` --preset ` (default is ` laravel ` ) or ` --test ` easily as below:
1818
1919``` shell
20- $ docker run -it --rm -v $PWD :/workspace syncloudsoftech/pinter --preset psr12
20+ $ docker run -it --rm -v $PWD :/workspace syncloudsoftech/pinter pint --preset psr12
2121```
2222
2323## Development
You can’t perform that action at this time.
0 commit comments