dockerfile for plugins also copies static files now

This commit is contained in:
hakasapl 2022-07-06 12:39:59 -04:00
parent 384e700c38
commit 49752e7056
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,7 @@
FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
RUN set -x \
&& source /opt/netbox/venv/bin/activate \
&& SITEDIR=$(/opt/netbox/venv/bin/python3 -c 'import site; print(site.getsitepackages()[0])') \
&& pip install netbox-topology-views \
&& cp -r $SITEDIR/netbox_topology_views/static/netbox_topology_views /opt/netbox/netbox/static/