Skip to content
Snippets Groups Projects
Dockerfile 583 B
Newer Older
John Graham's avatar
John Graham committed
FROM netboxcommunity/netbox
John Graham's avatar
John Graham committed
RUN apk add alpine-sdk git libressl-dev libffi-dev python3-dev libxml2-dev libxslt-dev py3-pillow
John Graham's avatar
John Graham committed

John Graham's avatar
John Graham committed

John Graham's avatar
John Graham committed
RUN source /opt/netbox/venv/bin/activate && \
John Graham's avatar
John Graham committed
    /opt/netbox/venv/bin/pip3 install napalm-dellos10 netbox-qrcode nextbox-ui-plugin
John Graham's avatar
John Graham committed
WORKDIR /tmp
John Graham's avatar
John Graham committed
RUN git clone https://gitlab.nautilus.optiputer.net/prp/napalm-onyx.git
John Graham's avatar
John Graham committed
WORKDIR /tmp/napalm-onyx
RUN /opt/netbox/venv/bin/pip3 install . && \
    rm -rf /tmp/napalm-onyx
John Graham's avatar
John Graham committed
    
#RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
John Graham's avatar
John Graham committed

John Graham's avatar
John Graham committed
WORKDIR /opt/netbox/netbox