File Dockerfile of Package cups-container
# Define the names/tags of the container #!BuildTag: suse/alp/workloads/cups:latest suse/alp/workloads/cups:%PKG_VERSION% suse/alp/workloads/cups:%PKG_VERSION%.%RELEASE% FROM opensuse/tumbleweed LABEL maintainer="Johannes Meixner <jsmeix@suse.com>" # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=com.suse.alp.workloads.cups LABEL org.opencontainers.image.title="CUPS container" LABEL org.opencontainers.image.description="This contains CUPS %PKG_VERSION% and cups-filters" LABEL org.opencontainers.image.version="%PKG_VERSION%" LABEL org.opencontainers.image.created="%BUILDTIME%" LABEL org.openbuildservice.disturl="%DISTURL%" LABEL com.suse.eula="beta" LABEL com.suse.image-type="application" LABEL com.suse.release-stage="prototype" # endlabelprefix # Cf. the Dockerfile in my (jsmeix@suse.com) # https://confluence.suse.com/display/corepackages/CUPS+Docker+Container+on+Leap+15.2 # Fill the image with content: # Nice to have for debugging by running bash inside the container: RUN zypper -v --non-interactive install netcat less gzip vim-small # Only a rather minimal CUPS system without printer driver packages but with recommended RPMs: RUN zypper -v --non-interactive install --recommends cups cups-filters poppler-tools # Clean the cache(s): RUN zypper clean -a # Configure cupsd: # Cf. the changes to the default cupsd.conf file in my (jsmeix@suse.com) # https://confluence.suse.com/display/corepackages/CUPS+Docker+Container+on+Leap+15.2 COPY cupsd.conf /etc/cups/cupsd.conf # Make cupsd that is listening on IPP port 631 accessible: EXPOSE 631 # Run cupsd in the foreground but detach the process from the controlling terminal and current directory: ENTRYPOINT ["/usr/sbin/cupsd"] CMD ["-F"] # End of Dockerfile