debootstrap --include=systemd-container --components=main,universe stretch opndocs https://deb.debian.org/debian/
systemd-nspawn -D opndocspasswdlogout
systemd-nspawn -b -D opndocs
apt-get install vim git python-pip
git clone https://github.com/qinohe/docs # example
cd docspip install -r requirements.txt
make html
docs/build/html
make clean
git clone https://github.com/opnsense/docs
I would recommend to do it differently. If you have python installed, you can use virtual env to avoid conflicts. It is in most time also better to run the same distribution on the container and the container. Differences may cause errors especially when the host has features the container does not expect like SELinux.
Also as a short note: You can open the files directly. There is no Webserver required.
python -m venv venvsource venv/bin/activategit clone https://github.com/qinohe/docspip install --upgrade pippip install -r requirements.txtmake html