add Dockerfile that will build shellcheck

This commit is contained in:
Kevin Pankonen 2016-08-05 16:20:06 -07:00
parent 6a71ff6f46
commit fa4874c044
1 changed files with 22 additions and 0 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM ubuntu:xenial
MAINTAINER https://github.com/koalaman/shellcheck
RUN apt-get update && apt-get install --no-install-recommends -y \
cabal-install \
ghc \
&& rm -rf /var/lib/apt/lists/*
COPY ShellCheck.cabal /src/ShellCheck.cabal
WORKDIR /src
ENV PATH="/root/.cabal/bin:$PATH"
RUN cabal update \
&& cabal install --only-dependencies
COPY . /src
RUN cabal install /src
CMD ["shellcheck", "-"]