Skip to content

Instantly share code, notes, and snippets.

@michaelperrin
Last active February 13, 2017 15:20
Show Gist options
  • Save michaelperrin/045852610ff080e8694ff9c01e8d70ce to your computer and use it in GitHub Desktop.
Save michaelperrin/045852610ff080e8694ff9c01e8d70ce to your computer and use it in GitHub Desktop.
Dockerfile to build Symfony documentation with Sphinx
# Usage:
# docker build -t symfony_docs_generator .
# docker run --rm -v `pwd`:/var/www/symfony-docs symfony_docs_generator make html
FROM python:3.6
MAINTAINER Michaël Perrin <contact@michaelperrin.fr>
RUN pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git
# Install LaTeX PDF for PDF build
RUN apt-get update \
&& apt-get install -y \
texlive-latex-extra
WORKDIR /var/www/symfony-docs/_build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment