Skip to content

Commit e6589e7

Browse files
committed
update Dockerfile
1 parent 99f146a commit e6589e7

File tree

3 files changed

+69
-7
lines changed

3 files changed

+69
-7
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
!.dockerignore
33
!Dockerfile
44
!README.md
5+
!texlive.profile

Dockerfile

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,32 @@ ENV LANG=C.UTF-8
1212
ARG DEBIAN_FRONTEND=noninteractive
1313
RUN \
1414
apt-get update && apt-get install -y --no-install-recommends \
15-
biber \
1615
ca-certificates \
1716
fontconfig \
1817
git \
19-
latexmk \
2018
lmodern \
2119
python-pygments \
22-
texlive-base \
23-
texlive-fonts-recommended \
24-
texlive-xetex \
2520
wget \
26-
xzdec \
2721
&& rm -rf /var/lib/apt/lists/*
2822

23+
# Setup ENV variables
24+
ENV \
25+
TL_BIN="install-tl-unx.tar.gz" \
26+
PATH="$PATH:/usr/local/texlive/2018/bin/x86_64-linux"
27+
28+
COPY texlive.profile /opt/
29+
30+
# Install TeX Live
31+
RUN \
32+
wget -q http://mirror.ctan.org/systems/texlive/tlnet/$TL_BIN \
33+
-O /opt/$TL_BIN \
34+
&& tar xzf /opt/$TL_BIN -C /opt/ \
35+
&& mv /opt/install-tl-2* /opt/install-tl/ \
36+
&& mv /opt/texlive.profile /opt/install-tl/ \
37+
&& cd /opt/install-tl \
38+
&& ./install-tl --profile=texlive.profile \
39+
&& rm -rf /opt/$TL_BIN /opt/$TL_DIR
40+
2941
# Install Fonts, mtheme, modernCV
3042
RUN \
3143
mkdir -p \
@@ -34,16 +46,29 @@ RUN \
3446
&& tlmgr init-usertree \
3547
&& tlmgr install academicons \
3648
&& tlmgr install beamertheme-metropolis \
49+
&& tlmgr install biber \
3750
&& tlmgr install biblatex \
3851
&& tlmgr install ccicons \
52+
&& tlmgr install collection-fontsrecommended \
53+
&& tlmgr install collection-xetex \
54+
&& tlmgr install contour \
55+
&& tlmgr install csquotes \
3956
&& tlmgr install fontawesome \
57+
&& tlmgr install framed \
58+
&& tlmgr install fvextra \
59+
&& tlmgr install ifplatform \
60+
&& tlmgr install import \
4061
&& tlmgr install logreq \
62+
&& tlmgr install minted \
4163
&& tlmgr install moderncv \
64+
&& tlmgr install pgfopts \
4265
&& tlmgr install ulem \
66+
&& tlmgr install upquote \
67+
&& tlmgr install xstring \
4368
&& git clone https://github.com/jpswalsh/academicons.git \
4469
academicons \
4570
&& find academicons/ -name "*.ttf" -exec install -m644 {} /usr/share/fonts/truetype/academicons/ \; || return 1 \
46-
&& git clone https://github.com/FortAwesome/Font-Awesome/ \
71+
&& git clone https://github.com/FortAwesome/Font-Awesome/ --branch v4.7.0\
4772
fontawesome\
4873
&& find fontawesome/ -name "*.ttf" -exec install -m644 {} /usr/share/fonts/truetype/fontawesome/ \; || return 1 \
4974
&& rm -rf \

texlive.profile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# texlive.profile written on Fri Oct 26 13:22:55 2018 UTC
2+
# It will NOT be updated and reflects only the
3+
# installation profile at installation time.
4+
selected_scheme scheme-custom
5+
TEXDIR /usr/local/texlive/2018
6+
TEXMFCONFIG ~/.texlive2018/texmf-config
7+
TEXMFHOME ~/texmf
8+
TEXMFLOCAL /usr/local/texlive/texmf-local
9+
TEXMFSYSCONFIG /usr/local/texlive/2018/texmf-config
10+
TEXMFSYSVAR /usr/local/texlive/2018/texmf-var
11+
TEXMFVAR ~/.texlive2018/texmf-var
12+
binary_x86_64-linux 1
13+
collection-basic 1
14+
collection-latex 1
15+
collection-latexrecommended 1
16+
collection-luatex 1
17+
collection-metapost 1
18+
collection-xetex 1
19+
instopt_adjustpath 0
20+
instopt_adjustrepo 1
21+
instopt_letter 0
22+
instopt_portable 0
23+
instopt_write18_restricted 1
24+
tlpdbopt_autobackup 1
25+
tlpdbopt_backupdir tlpkg/backups
26+
tlpdbopt_create_formats 1
27+
tlpdbopt_desktop_integration 1
28+
tlpdbopt_file_assocs 1
29+
tlpdbopt_generate_updmap 0
30+
tlpdbopt_install_docfiles 1
31+
tlpdbopt_install_srcfiles 1
32+
tlpdbopt_post_code 1
33+
tlpdbopt_sys_bin /usr/local/bin
34+
tlpdbopt_sys_info /usr/local/share/info
35+
tlpdbopt_sys_man /usr/local/share/man
36+
tlpdbopt_w32_multi_user 1

0 commit comments

Comments
 (0)