Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions jgm/pandoc/2.9.2.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM cr.loongnix.cn/library/debian:buster-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive-xetex \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-lang-chinese \
fonts-noto-cjk \
fontconfig \
lmodern \
&& fc-cache -fv \
&& rm -rf /var/lib/apt/lists/*

RUN wget -qO /tmp/pandoc-2.9.2.1-loongarch64-abi1.tar.gz http://cloud.loongnix.cn/releases/loongarch64abi1/jgm%2Fpandoc%2F2.9.2.1/pandoc-2.9.2.1-loongarch64-abi1.tar.gz

RUN tar -xzf /tmp/pandoc-2.9.2.1-loongarch64-abi1.tar.gz -C / \
&& rm /tmp/pandoc-2.9.2.1-loongarch64-abi1.tar.gz

ENV pandoc_datadir=/opt/pandoc/share/pandoc-2.9.2.1
ENV PATH="/usr/local/bin:${PATH}"
30 changes: 30 additions & 0 deletions jgm/pandoc/2.9.2.1/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file is generated by the template.

REGISTRY ?=cr.loongnix.cn
ORGANIZATION ?=jgm
REPOSITORY ?=pandoc
TAG ?=2.9.2.1
LATEST ?=true

RELEASE_URL=
IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):$(TAG)
LATEST_IMAGE=$(REGISTRY)/$(ORGANIZATION)/$(REPOSITORY):latest

default: image

release:

image: release
docker build \
-t $(IMAGE) \
-f Dockerfile \
.

push:
docker push $(IMAGE)
#latest image
@if [ $(LATEST) = "true" ]; \
then \
docker tag $(IMAGE) $(LATEST_IMAGE); \
docker push $(LATEST_IMAGE); \
fi
Loading