diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..fcd3985 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +version: "3" + +services: + doc: + container_name: sphinx_documentation + build: docker/doc + volumes: + - ./docs:/etc/Sphinx/source + ports: + - 8100:80 diff --git a/docker/doc/Dockerfile b/docker/doc/Dockerfile new file mode 100644 index 0000000..65d0c39 --- /dev/null +++ b/docker/doc/Dockerfile @@ -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