-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
38 lines (34 loc) · 824 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
28
29
30
31
32
33
34
35
36
37
38
FROM debian:testing
ARG USER_NAME=latex
ARG USER_HOME=/home/latex
ARG USER_ID=1000
ARG USER_GECOS=LaTeX
RUN adduser \
--home "$USER_HOME" \
--uid $USER_ID \
--gecos "$USER_GECOS" \
--disabled-password \
"$USER_NAME"
ARG WGET=wget
ARG GIT=git
ARG MAKE=make
ARG PANDOC=pandoc
ARG PYGMENTS=python-pygments
ARG FIG2DEV=fig2dev
RUN apt-get update && apt-get install -y \
texlive-full \
# some auxiliary tools
"$WGET" \
"$GIT" \
"$MAKE" \
# markup format conversion tool
"$PANDOC" \
# XFig utilities
"$FIG2DEV" \
# syntax highlighting package
"$PYGMENTS" && \
# Removing documentation packages *after* installing them is kind of hacky,
# but it only adds some overhead while building the image.
apt-get --purge remove -y .\*-doc$ && \
# Remove more unnecessary stuff
apt-get clean -y