Skip to content

Commit 9f9f7b4

Browse files
authored
Merge pull request #109 from llaville/7.4
Fix passing arguments and options on Docker image for PHP 7.4
2 parents a8cef92 + 6d2b9e2 commit 9f9f7b4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ COPY entrypoint.sh /entrypoint.sh
99
RUN chmod +x /entrypoint.sh
1010
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
1111

12+
WORKDIR /workdir
1213
ENTRYPOINT ["/entrypoint.sh"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you want to disable the config file, you can add option `--no-configuration`.
9595
### Docker cli
9696

9797
```bash
98-
$ docker run overtrue/phplint ./ --exclude=vendor
98+
docker run --rm -t -v "${PWD}":/workdir overtrue/phplint ./ --exclude=vendor
9999
```
100100

101101
### Program

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -l
22

3-
set -xe
3+
set -e
44

5-
/root/.composer/vendor/bin/phplint ${INPUT_PATH} ${INPUT_OPTIONS}
5+
exec /root/.composer/vendor/bin/phplint "$@"

0 commit comments

Comments
 (0)