Files
latex-container/Dockerfile
Julian Pollinger 7c204d17a5
Some checks failed
Build Docker Image / build (default) (push) Failing after 10m59s
Build Docker Image / build (full) (push) Failing after 3m42s
Build Docker Image / build (python) (push) Successful in 5m2s
Build Docker Image / build (full-python) (push) Failing after 32m35s
add pygments
2025-07-14 21:55:10 +02:00

33 lines
932 B
Docker

ARG PYTHON_PACKAGES="python3 python3-dev py3-pip pandoc-cli py3-pygments"
ARG SYSTEM_PACKAGES="graphviz nodejs git-lfs make ncurses openjdk21"
FROM harbor.pollinger.dev/dockerhub-mirror/alpine:latest AS base
ARG SYSTEM_PACKAGES
ENV TERM=xterm-256color
RUN apk add --no-cache ${SYSTEM_PACKAGES}
FROM base AS default
ENV TERM=xterm-256color
RUN apk add --no-cache texlive texlive-luatex biber
RUN luaotfload-tool --update
FROM base AS full
ENV TERM=xterm-256color
RUN apk add --no-cache texlive-full biber
RUN luaotfload-tool --update
RUN apk add --no-cache gcc musl-dev linux-headers
FROM default AS python
ENV TERM=xterm-256color
ARG PYTHON_PACKAGES
RUN apk add --no-cache ${PYTHON_PACKAGES}
RUN python -m venv /root/venv
ENV PATH="/root/venv/bin:$PATH"
FROM full AS full-python
ENV TERM=xterm-256color
ARG PYTHON_PACKAGES
RUN apk add --no-cache ${PYTHON_PACKAGES}
RUN python -m venv /root/venv
ENV PATH="/root/venv/bin:$PATH"