Skip to content

Instantly share code, notes, and snippets.

@akimichi
Last active June 25, 2017 17:03
Show Gist options
  • Save akimichi/2831e86260feb25a8c31a7fa7a1c746d to your computer and use it in GitHub Desktop.
Save akimichi/2831e86260feb25a8c31a7fa7a1c746d to your computer and use it in GitHub Desktop.
Dockerfile for pandoc command
FROM haskell:8.0
LABEL maintainer="Akimichi Tatsukawa <akimichi.tatsukawa@gmail.com>" \
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