mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-22 08:16:54 +00:00
18 lines
598 B
Plaintext
18 lines
598 B
Plaintext
# Dockerfile-plugins
|
|
ARG FROM_TAG=v4.4-3.4.0
|
|
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}
|
|
|
|
# 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/*
|
|
|
|
# Plugins ins Image installieren (ins NetBox-venv)
|
|
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
|
|
|
|
# Zurück zum default user
|
|
USER netbox
|