Skip to content

Commit cac94f7

Browse files
committed
fix the build process with the git package
1 parent 5d4695a commit cac94f7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile-Plugins

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
FROM netboxcommunity/netbox:v3.7.8
22
LABEL org.opencontainers.image.source https://github.com/fpm-git/netbox
33

4+
RUN sed -i 's|http://archive.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \
5+
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \
6+
rm -f /etc/apt/sources.list.d/nginx.list && \
7+
apt-get update --allow-insecure-repositories && \
8+
apt-get install -y --allow-unauthenticated git && \
9+
apt-get clean && rm -rf /var/lib/apt/lists/*
10+
411
COPY ./plugin_requirements.txt /
512
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
6-
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location git+https://github.com/LHBL2003/netbox-qrcode@HTML-Label-Design
13+
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location git+https://github.com/LHBL2003/netbox-qrcode@HTML-Label-Design
714

815
COPY docker/nginx-unit.json /etc/unit/
916

0 commit comments

Comments
 (0)