FROM netboxcommunity/netbox ENV NAPALM_USERNAME netbox-napalm #RUN python3 -m pip install pip==19.3.1 RUN apk add git zlib && pip3 install --upgrade napalm cffi napalm-dellos10 RUN apk add py3-pillow WORKDIR /tmp RUN git clone https://github.com/k01ek/netbox-qrcode.git WORKDIR /tmp/netbox-qrcode RUN source /opt/netbox/venv/bin/activate COPY setup.py . #RUN sed 's/PLUGINS = []/PLUGINS = ['netbox_qrcode']/g' /etc/netbox/config/configuration.py RUN python3 setup.py install WORKDIR /opt/netbox/netbox RUN rm -rf /tmp/netbox-qrcode RUN cat /etc/netbox/config/configuration.py RUN cat /run/config/netbox/configuration.py