File Dockerfile of Package kiosk-container

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

FROM opensuse/tumbleweed

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.alp.workloads.yast
LABEL org.opencontainers.image.title="Kiosk Container"
LABEL org.opencontainers.image.description="Standalone container with browser in kiosk mode"
LABEL org.opencontainers.image.version="0.0.1"
LABEL org.opencontainers.image.url="TODO"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opensuse.reference="registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/kiosk:0.0.1-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="beta"
LABEL com.suse.image-type="application"
LABEL com.suse.release-stage="alpha"
# endlabelprefix

# install the YaST modules and rake tasks for development/debugging
# white list the supported modules in the YaST Control Center
# install also (in a separate zypper call for clarity) the tools usually needed for storage probing
# udev is needed for libinput
# TODO: return back registration when supported on TW and ALP
RUN zypper --non-interactive install --no-recommends \
  sway \
  seatd \
  util-linux \
  xwayland \
  udev \
  MozillaFirefox

RUN useradd --create-home kiosk

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY user_entrypoint.sh /user_entrypoint.sh
RUN chmod +x /user_entrypoint.sh
COPY sway.config /etc/sway/config
ENTRYPOINT ["/entrypoint.sh"]
openSUSE Build Service is sponsored by