forked from Hacking-the-Cloud/hackingthe.cloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.Dockerfile
30 lines (24 loc) · 1.04 KB
/
dev.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
# This Dockerfile is intended for local testing and requires a subscription to
# Material for MkDocs to work. If you'd like to contribute to Hacking the Cloud
# and need to setup a local env, you can use the normal "Dockerfile" in this repo.
# Thank you!
FROM ubuntu
ARG GH_TOKEN
WORKDIR /docs
RUN apt update -y
RUN apt install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev python3-pip python3 git
RUN pip install tzdata
RUN pip install pillow cairosvg
RUN pip install mkdocs-minify-plugin
RUN pip install mkdocs-awesome-pages-plugin
RUN pip install mkdocs-redirects
RUN pip install mkdocs-git-revision-date-localized-plugin
RUN pip install mkdocs-git-committers-plugin-2
RUN pip install mkdocs-rss-plugin
RUN pip install --use-pep517 mkdocs-glightbox
RUN pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
RUN git config --global --add safe.directory /docs &&\
git config --global --add safe.directory /site
EXPOSE 8000
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]