-
Notifications
You must be signed in to change notification settings - Fork 0
/
minimal.Dockerfile
42 lines (38 loc) · 1.13 KB
/
minimal.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
39
40
41
42
FROM ubuntu:rolling
MAINTAINER adin
ENV PATH=/usr/local/texlive/bin/x86_64-linux:$PATH
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY ./texlive-profile.txt /tmp/
COPY ./debian-equivs.txt /tmp/
# set up packages
RUN apt-get update -qq &&\
apt-get install --no-install-recommends -y \
equivs \
wget \
perl \
ca-certificates \
&& \
\
# Install texlive
wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
mkdir /tmp/install-tl && \
tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \
/tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt && \
\
# Install equivalent packages
cd /tmp && \
equivs-control texlive-local && \
equivs-build debian-equivs.txt && \
dpkg -i texlive-local*.deb && \
apt-get install -f && \
\
# Clean up
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
# Expose /home as workin dir
WORKDIR /home
VOLUME ["/home"]