Skip to content

Instantly share code, notes, and snippets.

@a-yasui
Created March 10, 2025 06:48
Show Gist options
  • Save a-yasui/610df9c8e9c793c5faaef0cf55190b25 to your computer and use it in GitHub Desktop.
Save a-yasui/610df9c8e9c793c5faaef0cf55190b25 to your computer and use it in GitHub Desktop.
Pandoc 3.6 から pandoc を自前の Docker に持ってくる方法
# pandoc import check
FROM pandoc/core:3.6.3-ubuntu AS pandoc
# 作成先
FROM ubuntu:24.04
COPY --from=pandoc /usr/local/bin/pandoc* /usr/local/bin/
COPY --from=pandoc /usr/local/lib/libffi* /usr/local/lib/
COPY --from=pandoc /usr/local/share /usr/local/share
# see: https://github.com/pandoc/dockerfiles/blob/main/ubuntu/Dockerfile#L80-L95
RUN apt-get update -y && \
apt-get install --assume-yes --no-install-recommends \
ca-certificates \
liblua5.4-0 \
libatomic1 \
libgmp10 \
libpcre3 \
libyaml-0-2 \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment