diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 2ecb06d7..4564de6c 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -11,6 +11,7 @@ ARG WKHTMLTOPDF_DISTRO=bookworm ARG NODE_VERSION=24.13.0 ENV NVM_DIR=/home/frappe/.nvm ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH} +ARG INSTALL_PYCUPS=false RUN useradd -ms /bin/bash frappe \ && apt-get update \ @@ -62,6 +63,8 @@ RUN useradd -ms /bin/bash frappe \ && curl -sLO https://github.com/wkhtmltopdf/packaging/releases/download/$WKHTMLTOPDF_VERSION/$downloaded_file \ && apt-get install -y ./$downloaded_file \ && rm $downloaded_file \ + # Install cups + && if [ "${INSTALL_PYCUPS}" != "false" ]; then apt-get install --no-install-recommends -y libcups2-dev cups-client fi \ # Clean up && rm -rf /var/lib/apt/lists/* \ && rm -fr /etc/nginx/sites-enabled/default \ diff --git a/images/production/Containerfile b/images/production/Containerfile index f95a9703..7ee7531f 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -7,6 +7,7 @@ ARG WKHTMLTOPDF_DISTRO=bookworm ARG NODE_VERSION=24.13.0 ENV NVM_DIR=/home/frappe/.nvm ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH} +ARG INSTALL_PYCUPS=false RUN useradd -ms /bin/bash frappe \ && apt-get update \ @@ -58,6 +59,8 @@ RUN useradd -ms /bin/bash frappe \ && curl -sLO https://github.com/wkhtmltopdf/packaging/releases/download/$WKHTMLTOPDF_VERSION/$downloaded_file \ && apt-get install -y ./$downloaded_file \ && rm $downloaded_file \ + # Install cups + && if [ "${INSTALL_PYCUPS}" != "false" ]; then apt-get install --no-install-recommends -y libcups2-dev cups-client fi \ # Clean up && rm -rf /var/lib/apt/lists/* \ && rm -fr /etc/nginx/sites-enabled/default \