-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
97 lines (84 loc) · 2.56 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
ARG base_image=python
FROM minidocks/python AS python
FROM minidocks/weasyprint AS weasyprint
FROM $base_image AS latest
LABEL maintainer="Martin Hasoň <[email protected]>"
RUN apk add py3-regex py3-pynacl py3-ruamel.yaml && pip install \
mkdocs \
\
mkdocs-abs-rel-plugin \
mkdocs-add-number-plugin \
mkdocs-autolinks-plugin \
mkdocs-autorefs \
mkdocs-awesome-pages-plugin \
mkdocs-categories-plugin \
mkdocs-codeinclude-plugin \
mkdocs-embed-external-markdown \
mkdocs-enumerate-headings-plugin \
mkdocs-exclude \
mkdocs-exclude-search \
mkdocs-extract-listings-plugin \
mkdocs-gallery \
mkdocs-gen-files \
mkdocs-git-authors-plugin \
mkdocs-git-committers-plugin-2 \
mkdocs-git-revision-date-localized-plugin \
mkdocs-img2fig-plugin \
mkdocs-include-markdown-plugin \
mkdocs-kroki-plugin \
mkdocs-literate-nav \
mkdocs-localsearch \
mkdocs-macros-plugin \
mkdocs-markdownextradata-plugin \
mkdocs-merge \
mkdocs-minify-plugin \
mkdocs-monorepo-plugin \
mkdocs-multirepo \
mkdocs-multirepo-plugin \
mkdocs-nav-weight \
mkdocs-no-sitemap-plugin \
mkdocs-print-site-plugin \
mkdocs-publisher \
mkdocs_pymdownx_material_extras \
mkdocs-safe-text-plugin \
mkdocs-same-dir \
mkdocs-section-index \
mkdocs-simple-hooks \
mkdocs-simple-plugin \
mkdocs-swagger-ui-tag \
mkdocs-redirects \
mkdocs-with-confluence \
mkdocstrings \
\
mkdocs-alabaster \
mkdocs-cinder \
mkdocs-kpn \
mkdocs-material \
\
mike \
\
neoteroi-mkdocs \
\
markdown-customblocks \
markdown-include \
pygments \
pymdown-extensions \
&& clean
COPY rootfs /
CMD [ "mkdocs", "serve", "--cleanr", "--dev-addr", "0.0.0.0:8000" ]
FROM minidocks/python:3-build AS build
RUN apk add libsass-dev \
&& pip3 wheel --wheel-dir=/tmp libsass
FROM latest AS pdf
COPY --from=build /tmp/libsass* /tmp
RUN apk add libsass && pip install \
/tmp/libsass* \
mkdocs-pdf-export-plugin \
mkdocs-with-pdf \
mkpdfs-mkdocs \
&& clean
RUN apk add msttcorefonts-installer font-freefont font-noto font-opensans font-roboto font-carlito font-overpass font-dejavu && clean
RUN wget -P /usr/share/fonts http://quivira-font.com/files/Quivira.otf
RUN wget -P /usr/share/fonts https://catrinity-font.de/downloads/Catrinity.otf
RUN update-ms-fonts && fc-cache -f && clean
FROM latest