Skip to content
Snippets Groups Projects
Containerfile 2.55 KiB
Newer Older
  • Learn to ignore specific revisions
  • justinz's avatar
    justinz committed
    FROM registry.fedoraproject.org/fedora:latest
    
    
    justinz's avatar
    justinz committed
    RUN dnf install -y dnf5 dnf5-plugins
    RUN dnf5 install -y dnf5 dnf5-plugins 
    
    
    justinz's avatar
    justinz committed
    RUN dnf install -y 'dnf-command(copr)'
    RUN dnf copr enable -y justinz/op6
    
    
    RUN dnf5 install -y kscreen \
                        maliit-keyboard \
                        plasma-mobile \
                        sddm
    
    justinz's avatar
    justinz committed
    
    
    RUN dnf5 install -y \
                               angelfish \
                               bluedevil \
                               calindori \
                               elisa-player \
                               kalk \
                               kclock \
                               koko \
                               kf5-kirigami2-addons \
                               plasma-dialer \
                               plasma-discover \
                               plasma-nm-mobile \
                               plasma-phonebook \
                               plasma-settings \
                               qmlkonsole \
                               spacebar
    
    
    RUN dnf5 install -y nano \
                        openssh-server \
                        util-linux \
                        util-linux-user
    
    
    RUN dnf5 instal -y pd-mapper \
                       qbootctl \
                       rmtfs \
                       tqftpserv
    
    
    RUN dnf5 install -y iproute \
                        iputils \
                        NetworkManager-bluetooth \
                        NetworkManager-config-connectivity-fedora \
                        NetworkManager-wifi \
                        NetworkManager-wwan \
                        wireless-regdb \
                        wpa_supplicant
    
    justinz's avatar
    justinz committed
    
    # Setup Group/User/PIN
    RUN groupadd -g 1000 user && \
      useradd -g 1000 -G wheel -m -u 1000 user && \
      echo 'user:147147' | chpasswd
    
    
    justinz's avatar
    justinz committed
    RUN echo '/dev/mapper/sda17p2 / ext4 rw,relatime 0 0' > /etc/fstab
    
    
    # Enable Systemd Services
    RUN systemctl enable pd-mapper \
                         qbootctl-mark-boot-successful \
                         rmtfs \
                         sddm \
                         sshd \
                         tqftpserv
    
    justinz's avatar
    justinz committed
    
    # Setup Autologin in SDDM
    
    RUN cp files/autologin.conf /etc/sddm.conf.d/autologin.conf
    
    justinz's avatar
    justinz committed
    
    # Setup Default Browser and Look and Feel
    
    justinz's avatar
    justinz committed
    
    # Setup Auto Screen Lock on Login
    
    RUN cp files/kscreenlockerrc /etc/xdg/kscreenlockerrc
    
    justinz's avatar
    justinz committed
    
    # Set Virtual Keyboard to Maliit
    
    justinz's avatar
    justinz committed
    
    ENTRYPOINT ["/bin/bash", "-l", "-i"]