2025-01-07 21:49:25 -06:00
|
|
|
FROM docker.io/netboxcommunity/netbox:v4.1.11
|
2024-10-06 10:15:20 -05:00
|
|
|
|
2024-10-06 18:52:28 -05:00
|
|
|
# Install extra configuration
|
|
|
|
COPY ./extra.py /etc/netbox/config/
|
|
|
|
|
|
|
|
# Install plugin modules
|
2024-10-06 10:15:20 -05:00
|
|
|
COPY ./plugin_requirements.txt /opt/netbox/
|
|
|
|
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt
|
2024-10-06 18:52:28 -05:00
|
|
|
|
|
|
|
# Install plugin static files
|
|
|
|
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
|