2014-02-03 13:08:35 -05:00
|
|
|
FROM ubuntu:12.04
|
2014-01-14 21:23:30 -05:00
|
|
|
MAINTAINER Nick Stinemates
|
2013-10-28 20:39:44 -04:00
|
|
|
#
|
|
|
|
# docker build -t docker:docs . && docker run -p 8000:8000 docker:docs
|
|
|
|
#
|
2013-08-29 19:49:41 -04:00
|
|
|
|
2014-01-14 21:23:30 -05:00
|
|
|
# TODO switch to http://packages.ubuntu.com/trusty/python-sphinxcontrib-httpdomain once trusty is released
|
2013-08-29 19:49:41 -04:00
|
|
|
|
2014-01-14 21:23:30 -05:00
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq make python-pip python-setuptools
|
|
|
|
# pip installs from docs/requirements.txt, but here to increase cacheability
|
2014-01-20 14:29:55 -05:00
|
|
|
RUN pip install Sphinx==1.2.1
|
|
|
|
RUN pip install sphinxcontrib-httpdomain==1.2.0
|
2014-01-14 21:23:30 -05:00
|
|
|
ADD . /docs
|
|
|
|
RUN make -C /docs clean docs
|
2013-08-29 19:49:41 -04:00
|
|
|
|
2014-01-14 21:23:30 -05:00
|
|
|
WORKDIR /docs/_build/html
|
|
|
|
CMD ["python", "-m", "SimpleHTTPServer"]
|
|
|
|
# note, EXPOSE is only last because of https://github.com/dotcloud/docker/issues/3525
|
|
|
|
EXPOSE 8000
|