Skip to content
Snippets Groups Projects
Commit dc71812c authored by John Graham's avatar John Graham
Browse files

Update Dockerfile

parent e515b447
No related branches found
No related tags found
No related merge requests found
Pipeline #15164 failed
...@@ -10,7 +10,17 @@ WORKDIR /tmp/napalm-onyx ...@@ -10,7 +10,17 @@ WORKDIR /tmp/napalm-onyx
RUN /opt/netbox/venv/bin/pip3 install pip==20.0.2 && \ RUN /opt/netbox/venv/bin/pip3 install pip==20.0.2 && \
/opt/netbox/venv/bin/pip3 install . && \ /opt/netbox/venv/bin/pip3 install . && \
rm -rf /tmp/napalm-onyx rm -rf /tmp/napalm-onyx
RUN adduser -k --uid 1000 netbox
ENV USER=netbox
ENV UID=1000
RUN adduser \
--disabled-password \
--gecos "" \
--ingroup "$USER" \
--uid "$UID" \
"$USER"
USER netbox USER netbox
RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment