Skip to content

Commit

Permalink
Add Docker stack for building documentation locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed May 13, 2020
1 parent ced39dd commit 1607444
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
doc:
container_name: sphinx_documentation
build: docker/doc
volumes:
- ./docs:/etc/Sphinx/source
ports:
- 8100:80
11 changes: 11 additions & 0 deletions docker/doc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:latest
WORKDIR /etc/
RUN mkdir -p /etc/Sphinx/build

RUN apk add --no-cache python3 make git

RUN pip3 install git+https://github.com/sphinx-doc/sphinx
RUN pip3 install sphinx-autobuild
RUN pip3 install sphinx-rtd-theme

CMD sphinx-autobuild -b html --host 0.0.0.0 --port 80 /etc/Sphinx/source /etc/Sphinx/build

0 comments on commit 1607444

Please sign in to comment.