~patrickhaussmann/docker-latex

82bfa50bdd52fdd8052132e241f1665ea22a0f68 — patrickhaussmann 2 years ago 6c68161
Remove slim builds
not worth it
2 files changed, 3 insertions(+), 29 deletions(-)

M .build.yml
M Dockerfile
M .build.yml => .build.yml +1 -9
@@ 16,16 16,8 @@ tasks:

- build: |
    cd docker-latex
    docker build -t latex --target texlive .

- build-slim: |
    cd docker-latex
    docker build -t latex:slim --target slim .
    docker build -t latex .

- publish: |
    docker tag latex patrickhaussmann/latex
    docker push patrickhaussmann/latex

- publish-slim: |
    docker tag latex:slim patrickhaussmann/latex:slim
    docker push patrickhaussmann/latex:slim

M Dockerfile => Dockerfile +2 -20
@@ 1,6 1,7 @@
FROM ubuntu as base
FROM ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update --quiet \
    && apt-get install -y --quiet texlive texlive-lang-german texlive-latex-extra texlive-lang-english texlive-plain-generic texlive-science texlive-extra-utils latexmk lmodern \
    && apt-get install -y --quiet python3 python3-pip jq ghostscript gnuplot \
	&& apt-get install -y --quiet software-properties-common && add-apt-repository -y ppa:inkscape.dev/stable && apt-get update --quiet && apt-get install -y --quiet inkscape \
    && pip3 install numpy matplotlib scipy pygments \


@@ 11,22 12,3 @@ RUN apt-get update --quiet \
RUN mkdir /.config && chmod 677 /.config && mkdir /.cache && chmod 677 /.cache
WORKDIR /src
CMD ["latexmk"]

FROM base as slim
RUN apt-get update --quiet \
    && apt-get install -y --quiet wget perl \
    && export TINYTEX_VERSION=2022.03 && export TINYTEX_INSTALLER=TinyTeX && wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh \
    && apt-get purge -y --quiet perl \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get --purge remove -y .\*-doc$ \
    && apt-get clean -y
ENV PATH="/root/bin:${PATH}"
RUN tlmgr install emptypage was minted fvextra ifplatform catchfile datetime2 datetime2-english datetime2-german tracklang babel-german


FROM base as texlive
RUN apt-get update --quiet \
    && apt-get install -y --quiet texlive texlive-lang-german texlive-latex-extra texlive-lang-english texlive-plain-generic texlive-science texlive-extra-utils latexmk lmodern \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get --purge remove -y .\*-doc$ \
    && apt-get clean -y