mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 04:02:56 -06:00
🐛 Permission fixes
This commit is contained in:
parent
5a3467538e
commit
6bdaf4e5b7
11
Dockerfile
11
Dockerfile
@ -6,12 +6,17 @@ 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.documentation=https://github.com/TheNetworkGuy/netbox-zabbix-sync/
|
||||||
LABEL org.opencontainers.image.licenses=MIT
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
LABEL org.opencontainers.image.authors="Twan Kamans"
|
LABEL org.opencontainers.image.authors="Twan Kamans"
|
||||||
|
|
||||||
USER 1000:1000
|
|
||||||
|
|
||||||
RUN mkdir -p /opt/netbox-zabbix
|
RUN mkdir -p /opt/netbox-zabbix
|
||||||
COPY --chown=1000:1000 . /opt/netbox-zabbix
|
RUN addgroup -g 1000 -S netbox-zabbix && adduser -u 1000 -S netbox-zabbix -G netbox-zabbix
|
||||||
|
RUN chown -R 1000:1000 /opt/netbox-zabbix
|
||||||
|
|
||||||
WORKDIR /opt/netbox-zabbix
|
WORKDIR /opt/netbox-zabbix
|
||||||
|
|
||||||
|
COPY --chown=1000:1000 . /opt/netbox-zabbix
|
||||||
|
|
||||||
|
USER 1000:1000
|
||||||
|
|
||||||
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
|
||||||
RUN pip install -r ./requirements.txt
|
RUN pip install -r ./requirements.txt
|
||||||
ENTRYPOINT ["python"]
|
ENTRYPOINT ["python"]
|
||||||
|
Loading…
Reference in New Issue
Block a user