Skip to content

Commit 9d476fa

Browse files
committed
Build documentation files in the image
1 parent 9142aaf commit 9d476fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ WORKDIR /opt/netbox/netbox
7474
# to g+w so that pictures can be uploaded to netbox.
7575
RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
7676
&& chmod -R g+w media /opt/unit/ \
77+
&& cd /opt/netbox/ && /opt/netbox/venv/bin/python -m mkdocs build \
78+
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
7779
&& SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
7880

7981
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]

0 commit comments

Comments
 (0)