mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 13:52:38 +00:00
11 lines
713 B
Plaintext
11 lines
713 B
Plaintext
# See: https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
|
|
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
|
|
# NOTE: This SECRET_KEY is only used during the installation. There's no need to change it.
|
|
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input |