dockerfile for plugins also copies static files now
This commit is contained in:
parent
384e700c38
commit
49752e7056
@ -1,4 +1,7 @@
|
|||||||
FROM netboxcommunity/netbox:latest
|
FROM netboxcommunity/netbox:latest
|
||||||
|
|
||||||
COPY ./plugin_requirements.txt /
|
RUN set -x \
|
||||||
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
|
&& 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/
|
@ -1 +0,0 @@
|
|||||||
netbox-topology-views
|
|
Reference in New Issue
Block a user