update dockerfiles

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-18 19:58:58 -04:00
parent 325d8a9ad2
commit c2f3257fbd
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 7 additions and 13 deletions

View File

@ -1,14 +1,9 @@
FROM haskell FROM debian:buster-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>" LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN buildDeps=' \ RUN apt-get update && apt-get install -y \
unzip \ pandoc \
' \ --no-install-recommends \
&& set -x \ && rm -rf /var/lib/apt/lists/*
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& cabal update \
&& cabal install pandoc pandoc-citeproc \
&& apt-get purge -y --auto-remove $buildDeps
ENTRYPOINT ["pandoc"] ENTRYPOINT ["pandoc"]

View File

@ -4,9 +4,8 @@ LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
file \ file \
shellcheck \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y shellcheck
CMD ["shellcheck"] CMD ["shellcheck"]