forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 983 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
39
40
41
42
FROM ubuntu:16.04
LABEL maintainer="Ce Gao(gaocegege) <[email protected]>"
ARG VERSION=${version:-"2018"}
ARG PLATFORM=${platform:-"x86_64-linux"}
ENV PATH=${PATH}:"/usr/local/texlive/${VERSION}/bin/${PLATFORM}"
ENV REMOTE="http://mirror.ctan.org/systems/texlive/tlnet"
ENV INSTALL="/tmp/install-texlive"
VOLUME ["/workdir"]
RUN apt-get update && apt-get install -y \
curl \
perl \
wget \
xzdec \
make \
libfontconfig1 \
fonts-arphic-bkai00mp \
fonts-arphic-bsmi00lp \
fonts-arphic-gbsn00lp \
fonts-arphic-gkai00mp \
fonts-arphic-ukai \
fonts-arphic-uming \
ttf-wqy-microhei \
ttf-wqy-zenhei \
xfonts-intl-chinese \
xfonts-intl-chinese-big
RUN mkdir -p ${INSTALL} \
&& curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xzv -C ${INSTALL} --strip-components=1
COPY .ci/ /etc/
RUN ${INSTALL}/install-tl -profile /etc/tl.profile
RUN tlmgr install latexmk ulem
WORKDIR /workdir
ENTRYPOINT ["make"]
CMD ["all"]