From 5a3467538e70921f7b4eadcf4c17e71993acedf1 Mon Sep 17 00:00:00 2001 From: Wouter de Bruijn Date: Fri, 28 Feb 2025 15:25:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Changed=20user=20for=20docker=20?= =?UTF-8?q?container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0551bd1..de18f3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ LABEL org.opencontainers.image.description="Python script to synchronise NetBox LABEL org.opencontainers.image.documentation=https://github.com/TheNetworkGuy/netbox-zabbix-sync/ LABEL org.opencontainers.image.licenses=MIT LABEL org.opencontainers.image.authors="Twan Kamans" + +USER 1000:1000 RUN mkdir -p /opt/netbox-zabbix -COPY . /opt/netbox-zabbix +COPY --chown=1000:1000 . /opt/netbox-zabbix WORKDIR /opt/netbox-zabbix RUN if ! [ -f ./config.py ]; then cp ./config.py.example ./config.py; fi RUN pip install -r ./requirements.txt