We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35fe382 commit c8f3acaCopy full SHA for c8f3aca
1 file changed
Dockerfile
@@ -12,4 +12,13 @@ RUN cd /opt && \
12
13
# Run the application
14
WORKDIR /opt
15
+
16
+RUN set -eux; \
17
+ addgroup --gid 1000 netbox-sync; \
18
+ adduser --uid 1000 --ingroup netbox-sync --shell /bin/sh --home /home/netbox-sync --disabled-password netbox-sync
19
20
+RUN chown -R netbox-sync:netbox-sync /opt
21
22
+USER netbox-sync
23
24
ENTRYPOINT ["python3", "netbox-sync.py"]
0 commit comments