-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (20 loc) · 683 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
25
# https://circleci.com/docs/2.0/circleci-images/#python
# We may as well use the same image we use for actually deploying our sites.
FROM circleci/python:3.9.2
# Dependencies
RUN sudo pip install mkdocs
RUN sudo pip install pymdown-extensions
RUN sudo pip install pygments
# Install the PagerDuty theme.
WORKDIR /tmp
RUN git clone https://github.com/pagerduty/mkdocs-theme-pagerduty
RUN cd mkdocs-theme-pagerduty && sudo python3 setup.py install
# Set our working directory and user
WORKDIR /docs
RUN sudo useradd -m --uid 1000 mkdocs
USER mkdocs
# Expose MkDocs server
EXPOSE 8000
# Start the local MkDocs server.
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]