build Sphinx documentation and use php -S to actually view it

This commit is contained in:
Dominik Liebler
2019-02-25 22:15:04 +01:00
parent 8dd39599e7
commit 7e7cccab64
4 changed files with 10 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ WORKDIR /app
RUN apt-get update \
&& apt-get install -y libzip-dev wget git-core python-pip \
&& docker-php-ext-install zip \
&& pip install Sphinx
&& pip install Sphinx sphinx_rtd_theme
ADD . /app
CMD [ "make", "cs", "test" ]
RUN cd /app && make cs test html
CMD [ "php", "-S", "0.0.0.0:80", "-t", "_build/html" ]