-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 834 Bytes
/
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
FROM squidfunk/mkdocs-material
# required for mkdocs-git-committers-plugin-2
RUN apk add --no-cache --virtual .build-deps gcc libc-dev libxslt-dev && \
apk add --no-cache libxslt && \
pip install --no-cache-dir lxml>=3.5.0 && \
pip install mkdocs-glightbox && \
pip install mkdocs-rss-plugin && \
pip install mkdocs-macros-plugin && \
apk del .build-deps
RUN pip install --no-cache-dir \
mkdocs-git-revision-date-localized-plugin \
# mkdocs-git-committers-plugin-2 \
# hotfix for authors because file move resets contributors list
git+https://github.com/tibitoth/mkdocs-git-committers-plugin-2.git@master \
mkdocs-glightbox
RUN git config --global --add safe.directory /github/workspace
EXPOSE 8000
ENTRYPOINT ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000" ]
CMD ["--config-file=mkdocs.pt.yml"]