-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 969 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 969 Bytes
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
FROM squidfunk/mkdocs-material:9.5.9
# 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 && \
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
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