-
Notifications
You must be signed in to change notification settings - Fork 1
/
miktex.dockerfile
38 lines (30 loc) · 1.09 KB
/
miktex.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:buster-slim AS miktex_min
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-transport-https \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN echo "deb http://miktex.org/download/debian buster universe" > /etc/apt/sources.list.d/miktex.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
ghostscript \
make \
perl \
miktex \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
COPY miktex_ctx/min.txt /tmp/
RUN miktexsetup finish \
&& initexmf --admin --set-config-value=[MPM]AutoInstall=1 \
&& mpm --admin --update-db \
&& mpm --admin --install=@/tmp/min.txt \
&& initexmf --admin --update-fndb
ENV MIKTEX_USERCONFIG=/miktex/.miktex/texmfs/config
ENV MIKTEX_USERDATA=/miktex/.miktex/texmfs/data
ENV MIKTEX_USERINSTALL=/miktex/.miktex/texmfs/install
FROM miktex_min AS miktex_base
COPY miktex_ctx/base.txt /tmp/
RUN mpm --admin --install=@/tmp/base.txt