Dockerfile 701 B

12345678910111213141516171819
  1. FROM ubuntu:12.04
  2. MAINTAINER Nick Stinemates
  3. #
  4. # docker build -t docker:docs . && docker run -p 8000:8000 docker:docs
  5. #
  6. # TODO switch to http://packages.ubuntu.com/trusty/python-sphinxcontrib-httpdomain once trusty is released
  7. RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq make python-pip python-setuptools
  8. # pip installs from docs/requirements.txt, but here to increase cacheability
  9. RUN pip install Sphinx==1.2.1
  10. RUN pip install sphinxcontrib-httpdomain==1.2.0
  11. ADD . /docs
  12. RUN make -C /docs clean docs
  13. WORKDIR /docs/_build/html
  14. CMD ["python", "-m", "SimpleHTTPServer"]
  15. # note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
  16. EXPOSE 8000