From ac9f28dcf8f53ed98d42fdbe7c4cc7f71eeb6571 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 13 Oct 2018 18:08:26 +0200 Subject: [PATCH] Build docker image first --- .drone.yml | 7 ++++++- Dockerfile | 17 +++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml index f0454e2..a627fab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,9 +6,14 @@ pipeline: # - build # volumes: # - /home/gitea/gitea/drone_build_cache/notes:/cache + + build-docker: + image: plugins/docker + repo: local/note-builder + auto_tag: true build: - image: local/pandoc + image: local/note-builder commands: - make diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e465e5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu + +ENV PANDOC_VERSION "2.3.1" + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \ + texlive-latex-base \ + texlive-full \ + latexmk \ + texlive-xetex \ + texlive-latex-extra \ + texlive-fonts-extra \ + texlive-bibtex-extra \ + fontconfig \ + lmodern wget build-essential graphviz + +RUN wget https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-${PANDOC_VERSION}-1-amd64.deb -O /pandoc.deb \ + && dpkg -i /pandoc.deb && rm /pandoc.deb