# -------------------------------------------------- # Network printing support (CUPS / pycups) # -------------------------------------------------- # Install native CUPS libraries and build dependencies USER root RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ libcups2-dev \ build-essential \ pkg-config \ && rm -rf /var/lib/apt/lists/* # Install pycups in the Frappe virtual environment USER frappe RUN /home/frappe/frappe-bench/env/bin/python -m pip install --no-cache-dir pycups \ && /home/frappe/frappe-bench/env/bin/python -c "import cups; print('pycups installed successfully')"