From f93e6900355fd39363cb7eebd85c0d940a98d556 Mon Sep 17 00:00:00 2001 From: Aurelie Hugues Date: Sun, 16 Oct 2022 11:55:30 +0200 Subject: [PATCH] Initial commit --- .drone.yml | 15 +++++++++++++++ Dockerfile | 27 +++++++++++++++++++++++++++ README.md | 3 +++ 3 files changed, 45 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f4ad1ba --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +kind: pipeline +type: docker +name: build + +steps: +- name: build and publish + image: plugins/docker + settings: + registry: git.faercol.me + image: faercol/latex + username: faercol + password: + from_secret: GIT_PASSWORD + repo: faercol/latex-docker + tags: latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..25b1af3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM ubuntu:jammy +LABEL author="Melora Hugues" +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -q \ + && apt-get install -qy build-essential wget libfontconfig1 \ + && rm -rf /var/lib/apt/lists/* + +# Install TexLive with scheme-basic +RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz; \ + mkdir /install-tl-unx; \ + tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1; \ + echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile; \ + /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile; \ + rm -r /install-tl-unx; \ + rm install-tl-unx.tar.gz + +ENV PATH="/usr/local/texlive/2022/bin/x86_64-linux:${PATH}" + +ENV HOME /data +WORKDIR /data + +# Install latex packages +RUN tlmgr install latexmk && \ + tlmgr install fontawesome + +VOLUME ["/data"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b1da5b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Custom Docker image for LaTex documents + +**TODO**