-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
21 lines (13 loc) · 641 Bytes
/
dev.Dockerfile
File metadata and controls
21 lines (13 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.14
RUN pip install mkdocs-material && pip install mkdocs-git-revision-date-localized-plugin
EXPOSE 8000
WORKDIR "/docs"
COPY config/mkdocs.yml mkdocs.yml
COPY docs/ docs/
COPY .git/ .git/
# We replace all db specific markdowns with sql again, since mkdocs can't render those.
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```mariadb/```sql/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```mysql/```sql/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```sqlite/```sql/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```postgresql/```sql/g'
ENTRYPOINT ["mkdocs", "serve", "-a", "0.0.0.0:80"]