2025-09-23 14:59:45 +00:00
|
|
|
# Dockerfile-plugins
|
2025-09-25 05:52:39 +00:00
|
|
|
FROM docker.io/netboxcommunity/netbox:${VERSION-v4.4-3.4.0}
|
2025-09-23 14:59:45 +00:00
|
|
|
|
2025-09-25 05:52:39 +00:00
|
|
|
# falls du Dateien kopieren/collectstatic brauchst, kurz root:
|
2025-09-24 06:00:58 +00:00
|
|
|
USER root
|
2025-09-23 14:59:45 +00:00
|
|
|
|
2025-09-25 05:52:39 +00:00
|
|
|
# 1) Plugin-Requirements ins Image legen
|
|
|
|
|
# (Datei kannst du weiter "requirements-plugins.txt" nennen)
|
|
|
|
|
COPY requirements-plugins.txt /opt/netbox/plugin_requirements.txt
|
2025-09-24 06:00:58 +00:00
|
|
|
|
2025-09-25 05:52:39 +00:00
|
|
|
# 2) Plugins ins NetBox-venv installieren (nutzt das im Image vorhandene 'uv pip')
|
|
|
|
|
# 3) (optional aber empfehlenswert) Statics sammeln, falls Plugins welche mitbringen
|
|
|
|
|
RUN /usr/local/bin/uv pip install --no-cache-dir -r /opt/netbox/plugin_requirements.txt \
|
|
|
|
|
&& DEBUG="true" SECRET_KEY="dummyKeyWithMinimumLength-------------------------" \
|
|
|
|
|
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
|
|
|
|
|
|
|
|
|
|
# zurück zum Default-User
|
2025-09-24 06:00:58 +00:00
|
|
|
USER netbox
|