File Dockerfile of Package yast-mgmt-qt-container

# SPDX-License-Identifier: MIT
# Defines the tag for OBS and build script builds:
#!BuildTag: suse/alp/workloads/yast-mgmt-qt:4.5.0
#!BuildTag: suse/alp/workloads/yast-mgmt-qt:4.5.0-%RELEASE%
#!BuildTag: suse/alp/workloads/yast-mgmt-qt:latest

# This extends the YaST management container with X libraries and Qt graphical
# frontend. You can run YaST with graphical interface even from a container.

FROM suse/alp/workloads/yast-mgmt-ncurses

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.alp.workloads.yast
LABEL org.opencontainers.image.title="YaST Container Image with QT"
LABEL org.opencontainers.image.description="YaST container based on Tumbleweed with graphical frontend"
LABEL org.opencontainers.image.version="4.5.0"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opensuse.reference="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/yast-mgmt-qt:4.5.0-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
# endlabelprefix

# YaST graphical frontend + theme + fonts
RUN zypper --non-interactive install --no-recommends \
  gnu-unifont-bitmap-fonts \
  libyui-qt \
  libyui-qt-pkg \
  yast2-control-center-qt \
  yast2-theme \
  yast2-x11 \
  && zypper clean --all \
  && rm -rf /usr/share/doc/

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# update the RUN label
# TODO: find better way to mount Xauthority
LABEL RUN="$YAST_RUN_LABEL --name yast-mgmt-qt \
  -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro -e XAUTHORITY -e XAUTHLOCALHOSTNAME \
  IMAGE"

openSUSE Build Service is sponsored by