forked from grafana/docs-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (38 loc) · 1.09 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM debian:jessie
RUN apt-get update \
&& apt-get install -y \
gettext \
git \
curl \
libssl-dev \
make \
python2.7 \
vim-tiny \
python-dev \
python-pip \
python-setuptools
# RUN curl -O https://bootstrap.pypa.io/get-pip.py
# RUN python2.7 get-pip.py
RUN pip install mkdocs
# add MarkdownTools to get transclusion
# (future development)
#RUN easy_install -U setuptools
#RUN pip install MarkdownTools2
# this version works, the current versions fail in different ways
#
RUN pip install awscli
#==1.4.4 pyopenssl==0.12
# get my sitemap.xml branch of mkdocs and use that for now
# commit hash of the newest commit of SvenDowideit/mkdocs on
# docker-markdown-merge branch, it is used to break docker cache
# see: https://github.com/SvenDowideit/mkdocs/tree/docker-markdown-merge
RUN git clone -b docker-markdown-merge https://github.com/SvenDowideit/mkdocs \
&& cd mkdocs/ \
&& git checkout ad32549c452963b8854951d6783f4736c0f7c5d5 \
&& ./setup.py install
WORKDIR /docs
EXPOSE 8000
CMD ["mkdocs", "serve"]
COPY . /docs
COPY README.md /docs/sources/index.md
RUN ./build.sh