doc-pandoc.Rmd 949 B

12345678910111213141516
  1. # Pre-compiled pandoc required by rmarkdown
  2. # Version from: https://github.com/metacran/r-builder/blob/master/pkg-build.sh
  3. # Scripts from: https://github.com/jangorecki/dockerfiles/blob/master/r-pkg/Dockerfile
  4. RUN PANDOC_VER="1.17.2" \
  5. && PANDOC_DIR="/opt/pandoc" \
  6. && PANDOC_URL="https://s3.amazonaws.com/rstudio-buildtools/pandoc-${PANDOC_VER}.zip" \
  7. && mkdir -p "${PANDOC_DIR}" \
  8. && wget --no-check-certificate -O /tmp/pandoc-${PANDOC_VER}.zip ${PANDOC_URL} \
  9. && unzip -j /tmp/pandoc-${PANDOC_VER}.zip "pandoc-${PANDOC_VER}/linux/debian/x86_64/pandoc" -d "${PANDOC_DIR}" \
  10. && chmod +x "${PANDOC_DIR}/pandoc" \
  11. && ln -s "${PANDOC_DIR}/pandoc" /usr/local/bin \
  12. && unzip -j /tmp/pandoc-${PANDOC_VER}.zip "pandoc-${PANDOC_VER}/linux/debian/x86_64/pandoc-citeproc" -d "${PANDOC_DIR}" \
  13. && chmod +x "${PANDOC_DIR}/pandoc-citeproc" \
  14. && ln -s "${PANDOC_DIR}/pandoc-citeproc" /usr/local/bin \
  15. && rm -f /tmp/pandoc-${PANDOC_VER}.zip