diff options
author | Cody Hiar <cody.hiar@investopedia.com> | 2016-09-02 14:34:31 -0600 |
---|---|---|
committer | Cody Hiar <cody.hiar@investopedia.com> | 2016-09-02 17:12:04 -0600 |
commit | e91b54d9ec6c1287be2519904a9f39beb3485846 (patch) | |
tree | 56960c59f344b358b0e9b26d5ad76c67b0f189ea /shellcheck-builder | |
parent | 7cfc1e88685fa4973d3e0020312c00615ef191a9 (diff) |
Moved neovim to alpine linux to save time on compiling
Diffstat (limited to 'shellcheck-builder')
-rw-r--r-- | shellcheck-builder/Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/shellcheck-builder/Dockerfile b/shellcheck-builder/Dockerfile new file mode 100644 index 0000000..5cb4a63 --- /dev/null +++ b/shellcheck-builder/Dockerfile @@ -0,0 +1,27 @@ +FROM mitchty/alpine-ghc:latest + +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" + + +# Get shellcheck binary +RUN mkdir -p /package/bin/ +RUN cp $(which 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/ + + +# Copy shellcheck package out to mounted directory +CMD ["cp", "-avr", "/package", "/mnt/"] |