-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (46 loc) · 1.16 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
# Mkdocs service
FROM ubuntu:19.10
LABEL maintainer="[email protected]"
LABEL version="0.1"
LABEL description="This dockerfile \
installs python and c modules needed \
to run mkdocs with several extensions."
VOLUME /content
VOLUME /stage
RUN apt-get clean
RUN rm -r /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get --assume-yes install libcairo2 \
libcairo2-dev \
build-essential \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-cffi \
libcairo2 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 \
libffi-dev \
shared-mime-info
RUN pip3 install \
--trusted-host=pypi.org \
--trusted-host=pypi.python.org \
--trusted-host=files.pythonhosted.org \
markdown \
setuptools \
mkdocs \
mkdocs-material \
mkdocs-mermaid-plugin \
pymdown-extensions \
pygments \
plantuml_markdown==3.1.0 \
mkdocs-pdf-export-plugin \
WeasyPrint
RUN touch /mkdocs_build
EXPOSE 8000
WORKDIR /content
#CMD tail -f /dev/null
#ENTRYPOINT [ "exec", "python3", "-m"]
CMD cd /content && python3 -m mkdocs build