latex-docker/Dockerfile.debian
Markus Pesch c8488d5ab3
All checks were successful
continuous-integration/drone/push Build is passing
fix: install correct pygments package for debian and ubuntu
2022-03-03 22:30:37 +01:00

45 lines
797 B
Docker

# Build-Arguments
ARG TAG=latest
# Base-Image
FROM docker.io/library/debian:${TAG}
# Labels
LABEL maintainer="Markus Pesch <markus.pesch@cryptic.systems>"
# Environment
ENV DEBIAN_FRONTEND="noninteractive"
# set shell
SHELL [ "/bin/bash", "-c" ]
# Runs
RUN apt-get update
RUN apt-get upgrade --yes
RUN apt-get install --yes \
biber \
curl \
git \
gnuplot \
latexmk \
make \
texlive-full
# install distribution specific versions
RUN case "$(cat /etc/debian_version)" in \
11*) \
apt-get install --yes python3-pygments \
;; \
*) \
apt-get install --yes python-pygments \
;; \
esac
# remove dpkg lists
RUN rm --recursive --force /var/lib/apt/lists/*
# Workspace
WORKDIR /workspace
VOLUME [ "/workspace" ]