-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (27 loc) · 1022 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
26
27
28
29
30
31
32
ARG JUPYTER_VERSION
FROM quay.io/jupyter/datascience-notebook:${JUPYTER_VERSION} as base
ARG MKDOCS_MATERIAL_VERSION
RUN \
git clone --single-branch https://github.com/squidfunk/mkdocs-material \
-b ${MKDOCS_MATERIAL_VERSION}
FROM quay.io/jupyter/datascience-notebook:${JUPYTER_VERSION}
COPY --from=base /home/jovyan/mkdocs-material/docs /home/jovyan/docs
COPY --from=base /home/jovyan/mkdocs-material/material /home/jovyan/material
COPY --from=base /home/jovyan/mkdocs-material/src /home/jovyan/src
COPY --from=base /home/jovyan/mkdocs-material/mkdocs.yml /home/jovyan/mkdocs.yml
COPY requirements.in requirements.in
RUN \
pip install --upgrade --no-cache \
pip \
pip-tools &&\
pip-compile requirements.in \
--resolver=backtracking \
--max-rounds 20 \
--verbose &&\
pip install -r requirements.txt
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"]