From 0e86bbb17ed4a9699d213be3975c9f62e10eae49 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 21 Aug 2024 10:40:57 -0500 Subject: [PATCH] Add Dockerfile-Plugins --- Dockerfile-Plugins | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile-Plugins diff --git a/Dockerfile-Plugins b/Dockerfile-Plugins new file mode 100644 index 0000000..9550318 --- /dev/null +++ b/Dockerfile-Plugins @@ -0,0 +1,9 @@ +FROM netboxcommunity/netbox:latest + +COPY ./plugin_requirements.txt /opt/netbox/ +RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt + +# These lines are only required if your plugin has its own static files. +COPY configuration/configuration.py /etc/netbox/config/configuration.py +COPY configuration/plugins.py /etc/netbox/config/plugins.py +RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input \ No newline at end of file