mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
🔧 Changed user for docker container
This commit is contained in:
parent
7781bc6732
commit
5a3467538e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user