File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
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" ]
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments