Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # See the top level Makefile in https://github.com/dotcloud/docker for usage.
  3. #
  4. FROM debian:jessie
  5. MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit)
  6. RUN apt-get update && apt-get install -yq make python-pip python-setuptools vim-tiny git pandoc
  7. RUN pip install mkdocs
  8. # installing sphinx for the rst->md conversion only - will be removed after May release
  9. # pip installs from docs/requirements.txt, but here to increase cacheability
  10. RUN pip install Sphinx==1.2.1
  11. RUN pip install sphinxcontrib-httpdomain==1.2.0
  12. # add MarkdownTools to get transclusion
  13. # (future development)
  14. #RUN easy_install -U setuptools
  15. #RUN pip install MarkdownTools2
  16. # this week I seem to need the latest dev release of awscli too
  17. # awscli 1.3.6 does --error-document correctly
  18. # https://github.com/aws/aws-cli/commit/edc2290e173dfaedc70b48cfa3624d58c533c6c3
  19. RUN pip install awscli
  20. # get my sitemap.xml branch of mkdocs and use that for now
  21. RUN git clone https://github.com/SvenDowideit/mkdocs &&\
  22. cd mkdocs/ &&\
  23. git checkout docker-markdown-merge &&\
  24. ./setup.py install
  25. ADD . /docs
  26. ADD MAINTAINERS /docs/sources/humans.txt
  27. WORKDIR /docs
  28. #build the sphinx html
  29. #RUN make -C /docs clean docs
  30. #convert to markdown
  31. RUN ./convert.sh
  32. # note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
  33. EXPOSE 8000
  34. CMD ["mkdocs", "serve"]