forked from netbox-community/netbox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Plugins
17 lines (13 loc) · 993 Bytes
/
Dockerfile-Plugins
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM netboxcommunity/netbox:v3.7.8
LABEL org.opencontainers.image.source https://github.com/fpm-git/netbox
RUN sed -i 's|http://archive.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \
rm -f /etc/apt/sources.list.d/nginx.list && \
apt-get update --allow-insecure-repositories && \
apt-get install -y --allow-unauthenticated git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY ./plugin_requirements.txt /
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location git+https://github.com/LHBL2003/netbox-qrcode@HTML-Label-Design
COPY docker/nginx-unit.json /etc/unit/
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input