forked from bmeaut/aspnetcorebook
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (25 loc) · 1.24 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
FROM squidfunk/mkdocs-material:9.5.27
# 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 && \
apk add --no-cache g++ && \
pip install --no-cache-dir lxml>=3.5.0 && \
apk del .build-deps
RUN pip install --no-cache-dir \
mkdocs-git-revision-date-localized-plugin \
git+https://github.com/tibitoth/mkdocs-git-committers-plugin-2.git@master \
mkdocs-glightbox
# required for weasyprint
RUN apk add python3 py3-pip pango gcc musl-dev py3-wheel python3-dev libffi-dev zlib-dev jpeg-dev chromium
RUN pip install --no-cache-dir weasyprint
RUN pip install --no-cache-dir libsass mkdocs-with-pdf livereload mkdocs-extra-sass-plugin
RUN git config --global --add safe.directory /github/workspace
EXPOSE 8000
# override inherited entrypoint (which is mkdocs), we want to have full control over
# what is executed using docker run's command parameters
ENTRYPOINT []
# Run the "mkdocs serve" command at the specified port.
# (to build the docs without serve: just override the cmd with "mkdocs build" when
# executing docker run. This can be used when runnig this docker image as github action
# in the CI pipeline)
CMD mkdocs serve --dev-addr=0.0.0.0:8000