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
@ -7,11 +7,16 @@ LABEL org.opencontainers.image.documentation=https://github.com/TheNetworkGuy/ne
|
||||
LABEL org.opencontainers.image.licenses=MIT
|
||||
LABEL org.opencontainers.image.authors="Twan Kamans"
|
||||
|
||||
RUN mkdir -p /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
|
||||
|
||||
COPY --chown=1000:1000 . /opt/netbox-zabbix
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
RUN mkdir -p /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
|
||||
ENTRYPOINT ["python"]
|
||||
|
Loading…
Reference in New Issue
Block a user