The packages are passed to apt-get install -y --no-install-recommends ... on Ubuntu and apk add --no-cache ...
on Alpine based images for OS packages, and to pip install ... for Python packages. Set at least one of the
two variables; with neither set the mod logs that there is nothing to install and exits.
E.g., to install the rsync, git and nginx OS packages and the apprise Python package, add the
following lines to your compose service:
- DOCKER_MODS=ghcr.io/linuxserver-playground/mods:universal-package-install
- INSTALL_PACKAGES=rsync|git|nginx
- INSTALL_PIP_PACKAGES=apprise
Notes:
- Package names entered should match the names in the relevant distro repo: https://pkgs.alpinelinux.org/packages or https://packages.ubuntu.com/
- To install a specific version of a package include it in the name, e.g.
apprise==1.10.0.aptrequires a single=, whileapkandpipuse a double==. - Setting
INSTALL_PIP_PACKAGESresults in the automatic install of thepython3-devandpython3-pipOS packages, an update ofpipto the latest version and installation of the latestsetuptoolsandwheelpackages to set up the necessary environment. - Any other OS dependency such as
makeorgitthat the pip install process may need should be added toINSTALL_PACKAGESmanually. - The OS packages are installed first, followed by the pip packages.
- Pip also uses the relevant LinuxServer wheel repo as an additional index to pull prebuilt wheels for common packages (https://wheel-index.linuxserver.io/ubuntu/ and https://wheel-index.linuxserver.io/alpine-3.16/).