Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
62 lines (53 loc) · 1.78 KB

File metadata and controls

62 lines (53 loc) · 1.78 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
# Set Timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' >/etc/timezone
WORKDIR /mppl
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
# Install Pandoc, LaTeX, Node.js, Chromium 依赖及中文字体包
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
gnupg \
fontconfig \
pandoc \
texlive-xetex \
texlive-lang-chinese \
ttf-mscorefonts-installer \
fonts-wqy-microhei \
fonts-noto-cjk \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libdbus-1-3 \
libdrm2 \
libgbm1 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
xdg-utils && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 安装 mermaid-filter(含 @mermaid-js/mermaid-cli 与 Puppeteer Chromium)
RUN npm install -g @xuanphuc/mermaid-filter && \
npm cache clean --force
COPY fonts/ /usr/share/fonts/mppl/
COPY templates/ /templates/
COPY config/ /etc/mppl/mermaid/
COPY scripts/mppl-entrypoint.sh /usr/local/bin/mppl-entrypoint.sh
RUN sed -i 's/\r$//' /usr/local/bin/mppl-entrypoint.sh && \
chmod +x /usr/local/bin/mppl-entrypoint.sh && \
cd /usr/share/fonts/mppl && mkfontscale && mkfontdir && \
fc-cache -fv
ENTRYPOINT ["/usr/local/bin/mppl-entrypoint.sh"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.