forked from ldeluigi/markdown-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (20 loc) · 988 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
FROM python:3.11.5-alpine
# Download PlantUML + dependencies
RUN mkdir -p /usr/share/man/man1 && apk add --no-cache openjdk8 graphviz && \
wget -q -O plantuml.jar https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar && \
mkdir -p /opt/plantuml && mv plantuml.jar /opt/plantuml/plantuml.jar
ENV ALLOW_PLANTUML_INCLUDE=true
# Download Python Markdown + dependencies
COPY config/requirements.txt /usr/local/src/requirements.txt
RUN apk add --no-cache gcc git musl-dev libffi-dev && \
pip install --no-cache-dir -r /usr/local/src/requirements.txt && \
apk del gcc musl-dev libffi-dev
# Configuration
COPY config/mkdocs.yml /usr/local/src/mkdocs.yml
COPY config/arithmatex.config.js /usr/local/src/arithmatex.config.js
COPY config/theme.main.html /usr/local/src/theme.main.html
COPY config/theme.404.html /usr/local/src/theme.404.html
# Entrypoint
COPY script/makedocs.sh /usr/local/bin/makedocs
RUN chmod +x /usr/local/bin/makedocs
ENTRYPOINT [ "makedocs" ]