mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-14 01:41:25 -06:00
Update Dockerfile
This commit is contained in:
parent
37b3bfc7fb
commit
2ea2edb6a6
@ -6,6 +6,8 @@ USER 1000:1000
|
|||||||
COPY --chown=1000:1000 . /opt/netbox-zabbix
|
COPY --chown=1000:1000 . /opt/netbox-zabbix
|
||||||
WORKDIR /opt/netbox-zabbix
|
WORKDIR /opt/netbox-zabbix
|
||||||
RUN if ! [ -f ./config.py ]; then cp ./config.py.example ./config.py; fi
|
RUN if ! [ -f ./config.py ]; then cp ./config.py.example ./config.py; fi
|
||||||
|
USER root
|
||||||
RUN pip install -r ./requirements.txt
|
RUN pip install -r ./requirements.txt
|
||||||
|
USER 1000:1000
|
||||||
ENTRYPOINT ["python"]
|
ENTRYPOINT ["python"]
|
||||||
CMD ["/opt/netbox-zabbix/netbox_zabbix_sync.py", "-v"]
|
CMD ["/opt/netbox-zabbix/netbox_zabbix_sync.py", "-v"]
|
||||||
|
Loading…
Reference in New Issue
Block a user