docker.io/pandoc/latex:3.7 linux/amd64

docker.io/pandoc/latex:3.7 - 国内下载镜像源 浏览次数:16

这是一个包含Pandoc和LaTeX编译器的Docker镜像。它提供了一个方便的环境,用于将各种文档格式(例如Markdown, reStructuredText, HTML等)转换成PDF等LaTeX输出格式。 用户无需在本地安装复杂的LaTeX依赖,即可方便地进行文档转换。

源镜像 docker.io/pandoc/latex:3.7
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7
镜像ID sha256:0e01830b47964bcd0aa472b0bb222527c47af139a2e14a6b216fe8851c989911
镜像TAG 3.7
大小 556.83MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 /usr/local/bin/pandoc
工作目录 /data
OS/平台 linux/amd64
浏览量 16 次
贡献者
镜像创建 2025-07-31T16:08:49.148344926Z
同步时间 2025-08-04 09:45
更新时间 2025-08-06 10:21
环境变量
PATH=/opt/texlive/texdir/bin/default:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin XDG_DATA_HOME=/usr/local/share
镜像标签
Albert Krewinkel <albert+pandoc@tarleb.com>: maintainer Albert Krewinkel <albert+pandoc@tarleb.com>: org.opencontainers.image.authors Official pandoc image with pandoc, pandoc-crossref, and a minimal LaTeX installation.: org.opencontainers.image.description GPL-2.0-or-later: org.opencontainers.image.licenses https://github.com/pandoc/dockerfiles: org.opencontainers.image.source pandoc with LaTeX: org.opencontainers.image.title https://github.com/pandoc/dockerfiles: org.opencontainers.image.url The pandoc Docker team: org.opencontainers.image.vendor 3.7.0.2: org.opencontainers.image.version John MacFarlane: org.pandoc.author Albert Krewinkel <albert+pandoc@tarleb.com>: org.pandoc.maintainer 3.7.0.2: org.pandoc.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7  docker.io/pandoc/latex:3.7

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7  docker.io/pandoc/latex:3.7

Shell快速替换命令

sed -i 's#pandoc/latex:3.7#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7  docker.io/pandoc/latex:3.7'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7  docker.io/pandoc/latex:3.7'

镜像构建历史


# 2025-08-01 00:08:49  251.89MB 执行命令并创建新的镜像层
RUN |2 texlive_bin=/opt/texlive/texdir/bin texlive_mirror_url= /bin/sh -c set -eux
cd /root
ARCH="$(uname -m)"
case "$ARCH" in
    ('x86_64') TEXLIVE_ARCH="x86_64-linuxmusl"
        ;;
    (*) echo >&2 "error: unsupported architecture '$ARCH'";
        exit 1
        ;;
esac
mkdir -p ${texlive_bin}
ln -sf "${texlive_bin}/${TEXLIVE_ARCH}" "${texlive_bin}/default"
# Request musl precompiled binary access
echo "binary_${TEXLIVE_ARCH} 1" >> /root/texlive.profile

# Install TeXLive
mirror_url="${texlive_mirror_url}"

if [ -z "${mirror_url}" ]; then
    # Get the mirror URL from the redirect. Otherwise, if we were to
    # always use the mirror URL, we'd run into problems whenever we get
    # installer and signatures from different mirrors that are not 100%
    # in sync.
    mirror_url=$(wget -4 --quiet --output-document=/dev/null \
                      --server-response \
                      http://mirror.ctan.org/ \
                      2>&1 | \
                      sed -ne 's/.*Location: \(.*\)$/\1/p' | head -n 1)
fi

# Trim trailing slash(es)
mirror_url=$(echo "$mirror_url" | sed -e 's/\/*$//')

installer_url="${mirror_url}/systems/texlive/tlnet"

# Download the install-tl perl script. The archive integrity and signature is
# verified later, so it's ok if we use an insecure connection.
wget -4 --no-verbose --no-check-certificate \
    "$installer_url/install-tl-unx.tar.gz" \
    "$installer_url/install-tl-unx.tar.gz".sha512 \
    "$installer_url/install-tl-unx.tar.gz".sha512.asc \

## Verifiy installer integrity
# get current signing key
gpg --keyserver keyserver.ubuntu.com \
    --receive-key 0xC78B82D8C79512F79CC0D7C80D5E5D9106BAB6BC || exit 5
gpg --verify install-tl-unx.tar.gz.sha512.asc || exit 5
sha512sum install-tl-unx.tar.gz.sha512 || exit 5

## Proceed with installation
# Extract installer
mkdir -p ./install-tl
tar --strip-components 1 -zvxf install-tl-unx.tar.gz -C "$PWD/install-tl"

# Run the default installation with the specified profile.
./install-tl/install-tl \
    -repository "${installer_url}" \
    --profile=/root/texlive.profile

# Cleanup installation artifacts.
rm -rf \
    ./install-tl \
    install-tl-unx.tar.gz \
    install-tl-unx.tar.gz.sha512 \
    install-tl-unx.tar.gz.sha512.asc

# Install packages required by pandoc
tlmgr install \
    --verify-repo=all \
    amsfonts \
    amsmath \
    babel \
    babel-basque \
    babel-czech \
    babel-danish \
    babel-dutch \
    babel-english \
    babel-finnish \
    babel-french \
    babel-german \
    babel-hungarian \
    babel-italian \
    babel-norsk \
    babel-polish \
    babel-portuges \
    babel-spanish \
    babel-swedish \
    beamer \
    biber \
    biblatex \
    bibtex \
    bidi \
    bidi \
    bookmark \
    booktabs \
    caption \
    cleveref \
    csquotes \
    euler \
    eurosym \
    fancyvrb \
    float \
    fontspec \
    footnotehyper \
    framed \
    geometry \
    graphics \
    hyperref \
    hyphen-basque \
    hyphen-czech \
    hyphen-danish \
    hyphen-dutch \
    hyphen-english \
    hyphen-finnish \
    hyphen-french \
    hyphen-german \
    hyphen-hungarian \
    hyphen-italian \
    hyphen-norwegian \
    hyphen-polish \
    hyphen-portuguese \
    hyphen-spanish \
    hyphen-swedish \
    ifmtarg \
    iftex \
    latexmk \
    listings \
    lm \
    lm-math \
    lua-ul \
    luacode \
    luacolor \
    lualatex-math \
    luatexbase \
    mathspec \
    memoir \
    microtype \
    multirow \
    natbib \
    parskip \
    pgf \
    selnolig \
    setspace \
    soul \
    subfig \
    tools \
    unicode-math \
    upquote \
    xcolor \
    xetex \
    xurl
# Reset to the default CTAN mirror, unless a specific mirror had been
# requested.
if [ -z "${texlive_mirror_url}" ]; then
    tlmgr option repository ctan
fi

rm -f /root/texlive.profile

# Update fonts
TERM=dumb luaotfload-tool --update && \
chmod -R o+w /opt/texlive/texdir/texmf-var
 # buildkit
                        
# 2025-08-01 00:08:49  0.00B 设置环境变量 PATH
ENV PATH=/opt/texlive/texdir/bin/default:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2025-08-01 00:08:49  0.00B 定义构建参数
ARG texlive_mirror_url=
                        
# 2025-08-01 00:08:49  0.00B 定义构建参数
ARG texlive_bin=/opt/texlive/texdir/bin
                        
# 2025-08-01 00:07:01  1.00KB 复制新文件或目录到容器中
COPY <<EOF /root/texlive.profile # buildkit
                        
# 2025-08-01 00:07:01  55.59MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk --no-cache add         curl         fontconfig         freetype         gnupg         gzip         perl         tar         wget         xz # buildkit
                        
# 2025-07-31 23:55:23  39.73MB 执行命令并创建新的镜像层
RUN |1 pandoc_version=edge /bin/sh -c apk --no-cache add librsvg;     apk --no-cache add rsvg-convert || true # buildkit
                        
# 2025-07-31 23:55:22  58.03MB 复制新文件或目录到容器中
COPY /usr/local/bin/pandoc-crossref /usr/local/bin/ # buildkit
                        
# 2025-07-31 23:44:49  1.61MB 执行命令并创建新的镜像层
RUN |1 pandoc_version=edge /bin/sh -c ln -s /usr/local/bin/pandoc /usr/local/bin/pandoc-lua &&     ln -s /usr/local/bin/pandoc /usr/local/bin/pandoc-server &&     apk --no-cache add         gmp         libffi         lua5.4 &&     mkdir -p "$XDG_DATA_HOME"/pandoc # buildkit
                        
# 2025-07-31 23:44:48  142.15MB 复制新文件或目录到容器中
COPY /usr/local/bin/pandoc /usr/local/bin/ # buildkit
                        
# 2025-07-31 23:35:36  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/usr/local/bin/pandoc"]
                        
# 2025-07-31 23:35:36  0.00B 设置工作目录为/data
WORKDIR /data
                        
# 2025-07-31 23:35:36  0.00B 设置环境变量 XDG_DATA_HOME
ENV XDG_DATA_HOME=/usr/local/share
                        
# 2025-07-31 23:35:36  0.00B 添加元数据标签
LABEL org.pandoc.version=3.7.0.2
                        
# 2025-07-31 23:35:36  0.00B 添加元数据标签
LABEL org.pandoc.author=John MacFarlane
                        
# 2025-07-31 23:35:36  0.00B 添加元数据标签
LABEL org.pandoc.maintainer=Albert Krewinkel <albert+pandoc@tarleb.com>
                        
# 2025-07-31 23:35:36  0.00B 添加元数据标签
LABEL maintainer=Albert Krewinkel <albert+pandoc@tarleb.com>
                        
# 2025-07-31 23:35:36  0.00B 定义构建参数
ARG pandoc_version=edge
                        
# 2025-07-15 19:30:48  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2025-07-15 19:30:48  7.82MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.4-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:0e01830b47964bcd0aa472b0bb222527c47af139a2e14a6b216fe8851c989911",
    "RepoTags": [
        "pandoc/latex:3.7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex:3.7"
    ],
    "RepoDigests": [
        "pandoc/latex@sha256:0960c2a6691d9fb95105baa8eebc5bf352489f336ec171fd317fac281eb1804f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pandoc/latex@sha256:c056fd9cdc57e23b1c044f9b10556bcd4dfb76f3a1bfba276b5a88fdd7d80050"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-07-31T16:08:49.148344926Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/opt/texlive/texdir/bin/default:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "XDG_DATA_HOME=/usr/local/share"
        ],
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/data",
        "Entrypoint": [
            "/usr/local/bin/pandoc"
        ],
        "OnBuild": null,
        "Labels": {
            "maintainer": "Albert Krewinkel \u003calbert+pandoc@tarleb.com\u003e",
            "org.opencontainers.image.authors": "Albert Krewinkel \u003calbert+pandoc@tarleb.com\u003e",
            "org.opencontainers.image.description": "Official pandoc image with pandoc, pandoc-crossref, and a minimal LaTeX installation.",
            "org.opencontainers.image.licenses": "GPL-2.0-or-later",
            "org.opencontainers.image.source": "https://github.com/pandoc/dockerfiles",
            "org.opencontainers.image.title": "pandoc with LaTeX",
            "org.opencontainers.image.url": "https://github.com/pandoc/dockerfiles",
            "org.opencontainers.image.vendor": "The pandoc Docker team",
            "org.opencontainers.image.version": "3.7.0.2",
            "org.pandoc.author": "John MacFarlane",
            "org.pandoc.maintainer": "Albert Krewinkel \u003calbert+pandoc@tarleb.com\u003e",
            "org.pandoc.version": "3.7.0.2"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 556828737,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5dffc48d3db359d4be5cdae3d76e55f8347a358b34388e4a04789d23eb2ca5c7/diff:/var/lib/docker/overlay2/8b70a14e7a5075d1eee95e688f424e0f138d4a6626324caf27fc63952a92780a/diff:/var/lib/docker/overlay2/c4cad13aafdbc4a696116b23d4526d68d12a9f3743894e19d835dc0b65af88dd/diff:/var/lib/docker/overlay2/a632d3b0ed44b6c407eb413197db5431d1e5aa373323c17c7d1825772c828aed/diff:/var/lib/docker/overlay2/d5102321f41b09f7fbef3a301999d9b45b76c84752bc0214fb57ee44ccd09814/diff:/var/lib/docker/overlay2/b7e2ea07a4e6fc88a53cbbb02bc049ccc44deb7bda0dd595082be216e6b98cbd/diff:/var/lib/docker/overlay2/7003f6316f5e4554758fbcc865fa919ed413a9ac11654ad2ae283b7867751af2/diff:/var/lib/docker/overlay2/f27eaa635426ded178015976f1ee49eff6bfdb7ad08b642524a0e5cf8f1c2364/diff",
            "MergedDir": "/var/lib/docker/overlay2/df68145eef00ad247bd7cee4b235ec2c7e320fe48481b5fb920368d1b196bda7/merged",
            "UpperDir": "/var/lib/docker/overlay2/df68145eef00ad247bd7cee4b235ec2c7e320fe48481b5fb920368d1b196bda7/diff",
            "WorkDir": "/var/lib/docker/overlay2/df68145eef00ad247bd7cee4b235ec2c7e320fe48481b5fb920368d1b196bda7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:7003d23cc2176ec98ba2f8b3b4b9b5f144ef370e39bfcf6275a92b5064bc9261",
            "sha256:19f2014eb0f52f78db3db70e15625c1f9696d179c1190e4999ffa3af11e44669",
            "sha256:6107f62838675a5eb74c095bde1f62588f3f3eb9aa60c82ba4ca3fc854433c64",
            "sha256:c46aeeb2424e78c9bc2b398dcc522b1309dba74c57de181cf3336e606215161f",
            "sha256:44b43d3ba0b606f8a23401212490f5c627faf3d76868a891ce278e56355c1f91",
            "sha256:b5554174ba19035296274e79537d0218b29aa726dc4669b3d036cfe07fc8f1d0",
            "sha256:50651e58d0cc2e81ed2c542365e4817648a00508ed5807aa95c4b30101cbcd23",
            "sha256:85fc9a47a2a5db214e2e16486e65a4d7abb09c5ba0929b5ed35a094bfb1f92da",
            "sha256:e77dbca6bbcd8e2005385bb14aeb68faa7d9b851c4d17e074053b80d5f19c5cb"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-08-04T09:44:46.991769471+08:00"
    }
}

更多版本

docker.io/pandoc/latex:3.7

linux/amd64 docker.io556.83MB2025-08-04 09:45
15