diff options
Diffstat (limited to 'shellcheck-builder')
-rw-r--r-- | shellcheck-builder/Dockerfile | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/shellcheck-builder/Dockerfile b/shellcheck-builder/Dockerfile index fc48715..c2bea54 100644 --- a/shellcheck-builder/Dockerfile +++ b/shellcheck-builder/Dockerfile @@ -1,27 +1,12 @@ -FROM mitchty/alpine-ghc:8.0 - -MAINTAINER Nikyle Nguyen <NLKNguyen@MSN.com> - -RUN apk add --no-cache build-base git - - -RUN mkdir -p /usr/src/shellcheck -WORKDIR /usr/src/shellcheck - -RUN git clone https://github.com/koalaman/shellcheck . -RUN cabal update && cabal install - -ENV PATH="/root/.cabal/bin:$PATH" - +FROM rdeavila/docker-shellcheck:latest # Get shellcheck binary RUN mkdir -p /package/bin/ -RUN cp $(which shellcheck) /package/bin/ +RUN cp ~/.cabal/bin/shellcheck /package/bin/ # Get shared libraries RUN mkdir -p /package/lib/ -RUN ldd $(which shellcheck) | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /package/lib/ - +RUN ldd ~/.cabal/bin/shellcheck | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /package/lib/ # Copy shellcheck package out to mounted directory CMD ["cp", "-avr", "/package", "/mnt/"] |