Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 gettext
  7. RUN pip install mkdocs
  8. # add MarkdownTools to get transclusion
  9. # (future development)
  10. #RUN easy_install -U setuptools
  11. #RUN pip install MarkdownTools2
  12. # this week I seem to need the latest dev release of awscli too
  13. # awscli 1.3.6 does --error-document correctly
  14. # https://github.com/aws/aws-cli/commit/edc2290e173dfaedc70b48cfa3624d58c533c6c3
  15. RUN pip install awscli
  16. # get my sitemap.xml branch of mkdocs and use that for now
  17. RUN git clone https://github.com/SvenDowideit/mkdocs &&\
  18. cd mkdocs/ &&\
  19. git checkout docker-markdown-merge &&\
  20. ./setup.py install
  21. ADD . /docs
  22. ADD MAINTAINERS /docs/sources/humans.txt
  23. WORKDIR /docs
  24. RUN VERSION=$(cat /docs/VERSION) &&\
  25. GIT_BRANCH=$(cat /docs/GIT_BRANCH) &&\
  26. AWS_S3_BUCKET=$(cat /docs/AWS_S3_BUCKET) &&\
  27. 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
  28. # note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
  29. EXPOSE 8000
  30. CMD ["mkdocs", "serve"]