Compare commits
No commits in common. "main" and "472675ff16534107f38c08a38d66d5cd536be4f2" have entirely different histories.
main
...
472675ff16
34
.drone.yml
34
.drone.yml
|
@ -1,34 +0,0 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: generate-tags
|
||||
image: node
|
||||
commands:
|
||||
- echo -n "$(date +'%Y-%m-%d_%H-%M'), latest" > .tags
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
depends_on:
|
||||
- clone
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
repo: kingofdog/pandoc-latex
|
||||
#- name: docker-arm64
|
||||
# image: plugins/docker
|
||||
# depends_on:
|
||||
# - clone
|
||||
# settings:
|
||||
# platform: linux/arm64
|
||||
# dockerfile: Dockerfile.arm64
|
||||
# username:
|
||||
# from_secret: docker_username
|
||||
# password:
|
||||
# from_secret: docker_password
|
||||
# repo: kingofdog/pandoc-latex
|
||||
# tags:
|
||||
# - latest
|
35
Dockerfile
35
Dockerfile
|
@ -1,25 +1,26 @@
|
|||
FROM texlive/texlive:latest
|
||||
FROM debian:buster-slim
|
||||
|
||||
ARG PANDOC_VERSION=3.1.4
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.16.0b
|
||||
ARG PANDOC_VERSION=2.11.4
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.9.1
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get clean
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget xz-utils
|
||||
RUN mkdir download \
|
||||
&& cd download
|
||||
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz
|
||||
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
|
||||
RUN ls -l \
|
||||
&& apt-get install -y wget xz-utils \
|
||||
&& mkdir download \
|
||||
&& cd download \
|
||||
&& wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz \
|
||||
&& wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz \
|
||||
&& ls -l \
|
||||
&& tar xf pandoc.tar.gz \
|
||||
&& tar xf pandoc-crossref.tar.xz \
|
||||
&& ls -l
|
||||
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& ls -l \
|
||||
&& mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& mv pandoc-crossref /usr/bin/ \
|
||||
&& cd .. \
|
||||
&& rm -rf download
|
||||
RUN apt-get install -y python3-pygments python3-pip inkscape
|
||||
RUN tlmgr update --self --all
|
||||
RUN tlmgr install tools ragged2e
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
&& rm -rf download \
|
||||
&& apt-get install -y \
|
||||
git \
|
||||
texlive-full \
|
||||
python-pygments \
|
||||
python3-pygments \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
FROM arm64v8/debian:bullseye-slim
|
||||
|
||||
ARG PANDOC_VERSION=3.0.1
|
||||
ARG PANDOC_CROSSREF_VERSION=v0.3.15.0
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget xz-utils
|
||||
RUN mkdir download \
|
||||
&& cd download
|
||||
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-arm64.tar.gz -O pandoc.tar.gz
|
||||
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
|
||||
RUN ls -l \
|
||||
&& tar xf pandoc.tar.gz \
|
||||
&& tar xf pandoc-crossref.tar.xz \
|
||||
&& ls -l
|
||||
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
|
||||
&& mv pandoc-crossref /usr/bin/ \
|
||||
&& cd .. \
|
||||
&& rm -rf download
|
||||
RUN apt-get install -y \
|
||||
git \
|
||||
texlive-full \
|
||||
python3-pygments
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
Loading…
Reference in New Issue
Block a user