2013-10-28 20:39:44 -04:00
|
|
|
#
|
2014-04-15 02:01:25 -04:00
|
|
|
# See the top level Makefile in https://github.com/dotcloud/docker for usage.
|
2013-10-28 20:39:44 -04:00
|
|
|
#
|
2014-04-15 02:01:25 -04:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
|
2013-08-29 19:49:41 -04:00
|
|
|
|
2014-05-11 20:31:27 -04:00
|
|
|
RUN apt-get update && apt-get install -yq make python-pip python-setuptools vim-tiny git gettext
|
2013-08-29 19:49:41 -04:00
|
|
|
|
2014-04-15 02:01:25 -04:00
|
|
|
RUN pip install mkdocs
|
|
|
|
|
|
|
|
# add MarkdownTools to get transclusion
|
|
|
|
# (future development)
|
|
|
|
#RUN easy_install -U setuptools
|
|
|
|
#RUN pip install MarkdownTools2
|
|
|
|
|
2014-06-17 22:38:45 -04:00
|
|
|
# this version works, the current versions fail in different ways
|
|
|
|
RUN pip install awscli==1.3.9
|
2014-04-15 02:01:25 -04:00
|
|
|
|
|
|
|
# get my sitemap.xml branch of mkdocs and use that for now
|
|
|
|
RUN git clone https://github.com/SvenDowideit/mkdocs &&\
|
|
|
|
cd mkdocs/ &&\
|
|
|
|
git checkout docker-markdown-merge &&\
|
|
|
|
./setup.py install
|
|
|
|
|
|
|
|
ADD . /docs
|
|
|
|
ADD MAINTAINERS /docs/sources/humans.txt
|
|
|
|
WORKDIR /docs
|
|
|
|
|
2014-04-23 02:28:06 -04:00
|
|
|
RUN VERSION=$(cat /docs/VERSION) &&\
|
|
|
|
GIT_BRANCH=$(cat /docs/GIT_BRANCH) &&\
|
|
|
|
AWS_S3_BUCKET=$(cat /docs/AWS_S3_BUCKET) &&\
|
|
|
|
echo "{% set docker_version = \"${VERSION}\" %}{% set docker_branch = \"${GIT_BRANCH}\" %}{% set aws_bucket = \"${AWS_S3_BUCKET}\" %}{% include \"beta_warning.html\" %}" > /docs/theme/mkdocs/version.html
|
|
|
|
|
2014-01-14 21:23:30 -05:00
|
|
|
# note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
|
2014-04-15 02:01:25 -04:00
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
CMD ["mkdocs", "serve"]
|