cube-inventree (1.1.11)

Published 2026-05-09 23:33:07 +00:00 by thomasj in thomasj/cube-services

Installation

docker pull git.thomasaldrian.net/thomasj/cube-inventree:1.1.11
sha256:205418b0439c3d8f41a1928ac7449880787bdb2d0313a98b24a63b79ae979cef

About this package

InvenTree inventory management system

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1754870400'
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.11.13
ENV PYTHON_SHA256=8fb5f9fbc7609fa822cb31549884575db7fd9657cbffb89510b5d7975963a83a
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-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 -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; 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-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; 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 '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' 'wheel<0.46' ; 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"]
ARG commit_tag=
ARG commit_hash=
ARG commit_date=
ARG data_dir=data
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV INVOKE_RUN_SHELL=/bin/bash
ENV INVENTREE_DOCKER=true
ENV INVENTREE_HOME=/home/inventree
ENV INVENTREE_DATA_DIR=/home/inventree/data
ENV INVENTREE_STATIC_ROOT=/home/inventree/data/static
ENV INVENTREE_MEDIA_ROOT=/home/inventree/data/media
ENV INVENTREE_BACKUP_DIR=/home/inventree/data/backup
ENV INVENTREE_PLUGIN_DIR=/home/inventree/data/plugins
ENV INVENTREE_BACKEND_DIR=/home/inventree/src/backend
ENV INVENTREE_CONFIG_FILE=/home/inventree/data/config.yaml
ENV INVENTREE_SECRET_KEY_FILE=/home/inventree/data/secret_key.txt
ENV INVENTREE_OIDC_PRIVATE_KEY_FILE=/home/inventree/data/oidc.pem
ENV INVENTREE_PLUGIN_FILE=/home/inventree/data/plugins.txt
ENV INVENTREE_GUNICORN_WORKERS=4
ENV INVENTREE_BACKGROUND_WORKERS=4
ENV INVENTREE_WEB_ADDR=0.0.0.0
ENV INVENTREE_WEB_PORT=8000
LABEL org.opencontainers.image.vendor=inventree org.opencontainers.image.title=InvenTree backend server org.opencontainers.image.description=InvenTree is the open-source inventory management system org.opencontainers.image.url=https://inventree.org org.opencontainers.image.documentation=https://docs.inventree.org org.opencontainers.image.source=https://github.com/inventree/InvenTree org.opencontainers.image.revision=0f45e3e org.opencontainers.image.licenses=MIT org.opencontainers.image.version=
RUN |4 commit_tag= commit_hash=0f45e3e commit_date=2026-02-02 21:29:13 +1100 data_dir=data /bin/sh -c apt-get update && apt-get install -y --no-install-recommends git gettext libldap2 wget curl ssh weasyprint libpango-1.0-0 libcairo2 poppler-utils postgresql-client mariadb-client fontconfig fonts-freefont-ttf fonts-terminus fonts-noto-core fonts-noto-cjk && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
RUN |4 commit_tag= commit_hash=0f45e3e commit_date=2026-02-02 21:29:13 +1100 data_dir=data /bin/sh -c rm -rf /usr/lib/python3/dist-packages/numpy && rm -rf /usr/lib/python3/dist-packages/scipy && rm -rf /usr/lib/python3/dist-packages/sympy # buildkit
EXPOSE map[8000/tcp:{}]
RUN |4 commit_tag= commit_hash=0f45e3e commit_date=2026-02-02 21:29:13 +1100 data_dir=data /bin/sh -c python -m pip install --no-cache-dir -U invoke # buildkit
RUN |4 commit_tag= commit_hash=0f45e3e commit_date=2026-02-02 21:29:13 +1100 data_dir=data /bin/sh -c mkdir -p ${INVENTREE_HOME} # buildkit
WORKDIR /home/inventree
COPY contrib/container/requirements.txt base_requirements.txt # buildkit
COPY tasks.py src/backend/requirements.txt contrib/container/gunicorn.conf.py contrib/container/init.sh ./ # buildkit
RUN |4 commit_tag= commit_hash=0f45e3e commit_date=2026-02-02 21:29:13 +1100 data_dir=data /bin/sh -c chmod +x init.sh # buildkit
ENTRYPOINT ["/bin/bash" "./init.sh"]
ENV INVENTREE_DEBUG=False
ENV INVENTREE_COMMIT_HASH=0f45e3e
ENV INVENTREE_COMMIT_DATE=2026-02-02 21:29:13 +1100
COPY src/backend/InvenTree /home/inventree/src/backend/InvenTree # buildkit
COPY src/backend/requirements.txt /home/inventree/src/backend/requirements.txt # buildkit
ENV PATH=/root/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /home/inventree/src/backend/InvenTree/web/static/web /home/inventree/src/backend/InvenTree/web/static/web # buildkit
COPY /root/.local /root/.local # buildkit
CMD ["sh" "-c" "exec gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree"]
COPY file:454cfa395287ee93e4eb06bb196de68a015abfbfb08f77e9b51f1966efb40ff9 in /home/inventree/config.yaml
ENV INVENTREE_CONFIG_FILE=/home/inventree/config.yaml
LABEL org.opencontainers.image.title="CubeServices InvenTree server" org.opencontainers.image.description="InvenTree inventory management system" org.opencontainers.image.source="https://git.thomasaldrian.net/thomasj/cube-services" org.opencontainers.image.authors="Thomas Aldrian <aldrian.thom@proton.me>"

Labels

Key Value
io.buildah.version 1.43.0
org.opencontainers.image.authors Thomas Aldrian <aldrian.thom@proton.me>
org.opencontainers.image.description InvenTree inventory management system
org.opencontainers.image.documentation https://docs.inventree.org
org.opencontainers.image.licenses MIT
org.opencontainers.image.revision 0f45e3e
org.opencontainers.image.source https://git.thomasaldrian.net/thomasj/cube-services
org.opencontainers.image.title CubeServices InvenTree server
org.opencontainers.image.url https://inventree.org
org.opencontainers.image.vendor inventree
org.opencontainers.image.version
Details
Container
2026-05-09 23:33:07 +00:00
0
OCI / Docker
linux/amd64
Thomas Aldrian <aldrian.thom@proton.me>
MIT
498 MiB
Versions (2) View all
latest 2026-05-09
1.1.11 2026-05-09