This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
generated from homecentr/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
63 lines (47 loc) · 1.97 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
FROM squidfunk/mkdocs-material:6.1.6 as material
FROM ubuntu:bionic-20200921
LABEL maintainer="Lukas Holota <me@lholota.com>"
LABEL io.homecentr.dependency-version=5.1.1
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ADD https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/requirements.txt /tmp/requirements.txt
ADD https://github.com/jgraph/drawio-desktop/releases/download/v12.9.13/draw.io-amd64-12.9.13.deb /tmp/drawio.deb
COPY --from=material /usr/local/bin/mkdocs /usr/local/bin/mkdocs
# Install the downloaded package and dependencies required for headless execution
# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install --no-install-recommends /tmp/drawio.deb -y && \
apt-get install -y --no-install-recommends \
libasound2=1.1.3-5ubuntu0.5 \
xvfb=2:1.19.6-1ubuntu4.7 \
python3-pip=9.0.1-2 \
python-pip-whl=9.0.1-2 \
python3=3.6.7-1~18.04 \
python3-distutils=3.6.5-3 \
git=1:2.17.1-1ubuntu0.7 \
# Required by draw.io
glib-networking=2.56.0-1ubuntu0.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN git clone https://github.com/squidfunk/mkdocs-material
WORKDIR /tmp/mkdocs-material
RUN pip3 install --no-cache-dir setuptools==49.2.0 && \
pip3 install --no-cache-dir . && \
pip3 install --no-cache-dir \
mkdocs-drawio-exporter==0.6.1 \
mkdocs-minify-plugin==0.3.0 \
mkdocs-git-revision-date-localized-plugin==0.5.0 \
mkdocs-awesome-pages-plugin==2.2.1 \
git+https://github.com/andyoakley/mkdocs-jinja2@2a72c7dfad9d29b43f55f82f57c093023062a2e0
COPY ./entrypoint.sh /entrypoint.sh
# rm -rf /tmp/** &&
RUN chmod a+x /entrypoint.sh
RUN apt-get remove --purge -y binutils git perl patch openssl bzip2 procps && \
apt-get autoremove -y && \
# Clean up apt cache
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /docs
EXPOSE 8000
ENTRYPOINT [ "/entrypoint.sh" ]