netbox-stack/netbox (4.6.5)

Published 2026-07-19 16:31:09 +00:00 by sven in sven/netbox-stack

Installation

docker pull git.luethi.co/sven/netbox-stack/netbox:4.6.5
sha256:d4255a35b49392d18fc22442af099cf7034bbbecd9595a1685845bbe7e2662ec

About this package

NetBox network source of truth

Image Layers

ADD alpine-minirootfs-3.24.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
ENV PYTHON_VERSION=3.14.6
ENV PYTHON_SHA256=143b1dddefaec3bd2e21e3b839b34a2b7fb9842272883c576420d605e9f30c63
RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev dpkg-dev dpkg findutils gcc gdbm-dev gnupg libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tar tcl-dev tk tk-dev util-linux-dev xz xz-dev zlib-dev zstd-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
CMD ["python3"]
LABEL org.opencontainers.image.title="netbox" org.opencontainers.image.version="${NETBOX_VERSION}" org.opencontainers.image.description="NetBox network source of truth"
/bin/sh -c apk add --no-cache bash curl libffi libpq libxslt openssl xmlsec zlib && addgroup -S netbox && adduser -S -G netbox -h /opt/netbox netbox
WORKDIR /opt/netbox
COPY dir:4f659db52f007f3288dde08985cc97c3285648bdb444220d52ca562b45640d98 in .
COPY dir:93c355848cf061f3587016247e57f46d03a78f51b02eed0648b261caaa028595 in /wheels
/bin/sh -c pip install --no-cache-dir --no-index --find-links=/wheels /wheels/*.whl && rm -rf /wheels
/bin/sh -c mkdir -p netbox/media netbox/reports netbox/scripts netbox/static && chown -R netbox:netbox /opt/netbox
VOLUME ["/opt/netbox/netbox/media"]
VOLUME ["/opt/netbox/netbox/static"]
COPY file:53b416addbb78aab7b7dc109b20158ba97a01fa6a62219684f5df39c90651a25 in /entrypoint.sh
/bin/sh -c chmod +x /entrypoint.sh
USER netbox
ENTRYPOINT ["/entrypoint.sh"]
CMD ["gunicorn"]

Labels

Key Value
io.buildah.version 1.44.0
org.opencontainers.image.description NetBox network source of truth
org.opencontainers.image.title netbox
org.opencontainers.image.version
Details
Container
2026-07-19 16:31:09 +00:00
5
OCI / Docker
linux/amd64
216 MiB
Versions (1) View all
4.6.5 2026-07-19