Skip to content

Commit fa54c7a

Browse files
committed
Initial commit
0 parents  commit fa54c7a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM alpine:latest AS build
2+
RUN apk add --no-cache curl
3+
RUN apk --no-cache add ca-certificates
4+
RUN curl -L https://github.com/fabpot/local-php-security-checker/releases/download/v1.0.0/local-php-security-checker_1.0.0_linux_386 --output /bin/php-security-checker
5+
RUN chmod 755 /bin/php-security-checker
6+
7+
FROM scratch
8+
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
9+
COPY --from=build /bin/php-security-checker /bin/php-security-checker
10+
ENTRYPOINT ["/bin/php-security-checker"]
11+
CMD ["--help"]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Docker PHP security checker
2+
3+
Wraps the Local PHP Security Checker inside a small Docker container.
4+
5+
```bash
6+
cd /yourproject
7+
docker run --rm -v $PWD:/app martijn/php-security-checker --path=/app
8+
```
9+
10+
More information:
11+
[1]: https://github.com/fabpot/local-php-security-checker
12+
[2]: https://hub.docker.com/repository/docker/martijn/php-security-checker
13+

0 commit comments

Comments
 (0)