Last active
June 25, 2017 17:03
-
-
Save akimichi/2831e86260feb25a8c31a7fa7a1c746d to your computer and use it in GitHub Desktop.
Dockerfile for pandoc command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM haskell:8.0 | |
LABEL maintainer="Akimichi Tatsukawa <[email protected]>" \ | |
description="pandocコマンドを実行するためのdockerイメージ" | |
# インストールするpandocのバージョンを設定する | |
ENV PANDOC_VERSION "1.19.2.1" | |
# latexパッケージをインストールする | |
RUN apt-get update -y \ | |
&& apt-get install -y -o Acquire::Retries=10 --no-install-recommends \ | |
texlive-latex-base \ | |
texlive-xetex latex-xcolor \ | |
texlive-math-extra \ | |
texlive-latex-extra \ | |
texlive-fonts-extra \ | |
texlive-bibtex-extra \ | |
texlive-luatex \ | |
texlive-lang-japanese \ | |
fontconfig \ | |
lmodern | |
# Rakeをインストールする | |
RUN apt-get install -y ruby rake | |
# Pythonをインストールする | |
RUN apt-get install -y python python-dev python-pip python-virtualenv | |
RUN pip install pandocfilters | |
# pandocをインストールする | |
RUN cabal update && cabal install pandoc-${PANDOC_VERSION} | |
RUN cabal install pandoc-csv2table pandoc-citeproc pandoc-placetable | |
RUN apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /workspace | |
VOLUME ["/workspace"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment