1
1
Fork 0
nixos/options/custom/containers/netbox/Dockerfile
Myned a5428f1d2e
netbox: fix container permissions
Signed-off-by: Myned <dev@bjork.tech>
2024-10-06 18:52:28 -05:00

12 lines
520 B
Docker

# TODO: Upgrade to v4.1 when supported by netbox-acls
FROM docker.io/netboxcommunity/netbox:v4.0.11
# Install extra configuration
COPY ./extra.py /etc/netbox/config/
# Install plugin modules
COPY ./plugin_requirements.txt /opt/netbox/
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt
# Install plugin static files
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input