-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (26 loc) · 948 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#*****************************************************************************
# Dockerfile for texlive based on Fedora
# Created on Fri 19 Oct 2018 16:49:12 BST
# Copyright 2018 by Till Hofmann <hofmann@kbsg.rwth-aachen.de>
#*****************************************************************************
#
# Distributed under terms of the MIT license.
#
#*****************************************************************************
FROM fedora:latest
ENV TEX_VERSION=2021
RUN dnf -y --nodocs install \
file \
git \
grep \
latexmk \
make \
openssh-clients \
texlive-scheme-full \
&& dnf clean all
# Check that we actually installed the expected version of texlive
RUN bash -c '\
tv=$(tex --version | grep -o "(TeX Live [0-9]*)" | grep -o "[0-9]*"); \
if [ "$tv" != "$TEX_VERSION" ] ; then \
echo "Unexpected TeX version $tv, expected TeX version $TEX_VERSION"; exit 1; \
fi'