2025-09-23 14:59:45 +00:00
|
|
|
# Dockerfile-plugins
|
2025-09-24 06:10:32 +00:00
|
|
|
ARG FROM_TAG=v4.4-3.4.0
|
2025-09-23 14:59:45 +00:00
|
|
|
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
|
|
|
|
|
|
2025-09-24 06:00:58 +00:00
|
|
|
# Für Plugin-Install: kurz root werden
|
|
|
|
|
USER root
|
|
|
|
|
# Debian/Bookworm: ensurepip ist oft nicht im Image -> python3-pip nachinstallieren
|
|
|
|
|
RUN apt-get update \
|
|
|
|
|
&& apt-get install -y --no-install-recommends python3-pip \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2025-09-23 14:59:45 +00:00
|
|
|
|
2025-09-24 06:00:58 +00:00
|
|
|
# Plugins ins Image installieren (ins NetBox-venv)
|
2025-09-23 14:59:45 +00:00
|
|
|
COPY requirements-plugins.txt /plugins/requirements-plugins.txt
|
|
|
|
|
RUN /opt/netbox/venv/bin/python -m pip install --no-cache-dir -r /plugins/requirements-plugins.txt
|
2025-09-24 06:00:58 +00:00
|
|
|
|
|
|
|
|
# Zurück zum default user
|
|
|
|
|
USER netbox
|