Dockerfile 506 B

1234567891011121314151617181920
  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. run apt-get update
  7. run apt-get install -y python-setuptools make
  8. run easy_install pip
  9. #from docs/requirements.txt, but here to increase cacheability
  10. run pip install --no-use-wheel Sphinx==1.1.3
  11. run pip install --no-use-wheel sphinxcontrib-httpdomain==1.1.9
  12. add . /docs
  13. run cd /docs; make docs
  14. expose 8000
  15. workdir /docs/_build/html
  16. entrypoint ["python", "-m", "SimpleHTTPServer"]