adds User to docker container #118

This commit is contained in:
ricardo.bartels@telekom.de
2022-01-23 22:34:51 +01:00
parent 35fe382f4a
commit c8f3acad56

View File

@@ -12,4 +12,13 @@ RUN cd /opt && \
# Run the application
WORKDIR /opt
RUN set -eux; \
addgroup --gid 1000 netbox-sync; \
adduser --uid 1000 --ingroup netbox-sync --shell /bin/sh --home /home/netbox-sync --disabled-password netbox-sync
RUN chown -R netbox-sync:netbox-sync /opt
USER netbox-sync
ENTRYPOINT ["python3", "netbox-sync.py"]