forked from posquit0/Awesome-CV
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
49 lines (38 loc) · 1.52 KB
/
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
43
44
45
46
47
48
49
FROM debian:stretch-slim
RUN apt-get update
#
# Set up TeX Live with dependencies.
#
RUN apt-get install --quiet --assume-yes wget build-essential fontconfig
# Get the TeX Live installer and extract to /install-tl/.
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
mkdir /install-tl && \
tar --extract --file=./install-tl-unx.tar.gz --strip-components=1 \
--directory=./install-tl && \
rm install-tl-unx.tar.gz
# Set install configuration for fixed path and basic scheme.
RUN echo "selected_scheme scheme-basic" >> /install-tl/basic.profile && \
echo "TEXDIR /usr/local/texlive/installed" >> /install-tl/basic.profile
# Install TeX Live.
RUN /install-tl/install-tl -profile /install-tl/basic.profile && \
rm --recursive --force /install-tl
ENV PATH "/usr/local/texlive/installed/bin/x86_64-linux:${PATH}"
# Install additional TeX Live dependencies.
COPY ./tl-deps .
RUN tlmgr install $(cat tl-deps) && \
rm tl-deps
#
# Set up Awesome-CV.
#
# Make .cls and .sty locally available.
COPY ./awesome-cv /awesome-cv
RUN mkdir --parents "$(kpsewhich -var-value=TEXMFHOME)/tex/latex/local" && \
cp --target-directory="$(kpsewhich -var-value=TEXMFHOME)/tex/latex/local" \
awesome-cv/awesome-cv.cls awesome-cv/fontawesome.sty && \
rm --recursive --force /awesome-cv
# Install fonts
COPY ./fonts /fonts
RUN mkdir /usr/share/fonts/truetype/Awesome-CV && \
cp /fonts/* /usr/share/fonts/truetype/Awesome-CV && \
fc-cache --force --verbose && \
rm --recursive --force /fonts