mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-22 08:16:54 +00:00
Refactor Dockerfile-plugins and docker-compose.override.yml to improve pip installation process and streamline image specification
This commit is contained in:
parent
c11718fce1
commit
76282d222f
|
|
@ -2,10 +2,10 @@
|
|||
ARG FROM_TAG=v4.4-3
|
||||
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
|
||||
|
||||
# Systemabhängigkeit: pip ins venv holen
|
||||
RUN python -m ensurepip && \
|
||||
# pip ins venv bringen und upgraden
|
||||
RUN /opt/netbox/venv/bin/python -m ensurepip && \
|
||||
/opt/netbox/venv/bin/python -m pip install --upgrade pip
|
||||
|
||||
# Plugins installieren
|
||||
# Plugins beim Build installieren
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
x-netbox-image: &netbox_image netboxplugins:local
|
||||
|
||||
services:
|
||||
netbox:
|
||||
build:
|
||||
|
|
@ -5,7 +8,8 @@ services:
|
|||
dockerfile: Dockerfile-plugins
|
||||
args:
|
||||
FROM_TAG: v4.4-3
|
||||
image: bboerni2/netbox:v4.4-3-plugins
|
||||
image: *netbox_image
|
||||
pull_policy: never
|
||||
ports:
|
||||
- "8000:8080"
|
||||
restart: unless-stopped
|
||||
|
|
|
|||
Loading…
Reference in a new issue