ShellCheck -- Shell script analysis tool, installed on Alpine Linux
10M+
This is the official Alpine Linux based Docker image for ShellCheck, a static analysis tool for shell scripts.
For a smaller image without a shell and other utilities, check out koalaman/shellcheck.
$ docker run --rm -it -v "$(pwd):/mnt" koalaman/shellcheck-alpine:latest shellcheck --version
ShellCheck - shell script analysis tool
version: v0.10.0-62-g3c75d82
license: GNU General Public License, version 3
website: https://www.shellcheck.net
You can create your own image based on this one:
FROM koalaman/shellcheck-alpine:stable
MAINTAINER Your Name <[email protected]>
CMD ["sh"]
Or you can copy the statically linked binary into your own arbitrary image:
FROM alpine:latest
COPY --from=koalaman/shellcheck:stable /bin/shellcheck /bin/
See koalaman/shellcheck for more tips.
Note that shellcheck-alpine runs with sh as its entrypoint, so you will need to include shellcheck in your docker run commands. The following commands are equivalent:
docker run --rm -it koalaman/shellcheck:stable --version
docker run --rm -it koalaman/shellcheck-alpine:stable shellcheck --version
Content type
Image
Digest
sha256:48d22a17b…
Size
7.6 MB
Last updated
about 1 month ago
docker pull koalaman/shellcheck-alpine