From 2ea2edb6a6e0ee002a2d3e07ed474098c832e921 Mon Sep 17 00:00:00 2001 From: Raymond Kuiper Date: Thu, 10 Apr 2025 16:13:37 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d4f7eee..198dbe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ USER 1000:1000 COPY --chown=1000:1000 . /opt/netbox-zabbix WORKDIR /opt/netbox-zabbix RUN if ! [ -f ./config.py ]; then cp ./config.py.example ./config.py; fi +USER root RUN pip install -r ./requirements.txt +USER 1000:1000 ENTRYPOINT ["python"] CMD ["/opt/netbox-zabbix/netbox_zabbix_sync.py", "-v"]