Added custom tags, auto install cups for network printing, added DOCKERFILE.cups
This commit is contained in:
1 parent
b26b8f22a4
commit
af045e325d
3 files changed
+142
-18
No files matched your search
@@ -0,0 +1,20 @@
|
||||
|
||||
# --------------------------------------------------
|
||||
# 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')"
|
||||
Reference in new issue
Block a user