FROM fedora:44

ENV TARGET_USER=garrettmills
ENV TARGET_UID=1000
ENV TARGET_GID=1000

COPY k8s.repo /etc/yum.repos.d/k8s.repo
COPY startup.bash /usr/sbin/startup.bash

RUN dnf install -y \
        https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-44.noarch.rpm \
        https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-44.noarch.rpm \
    && dnf config-manager --enable fedora-cisco-openh264 \
    && dnf install -y \
        zip unzip curl tar vim htop fish stow git openssh-clients gnupg2 make nodejs \
        procps-ng rsync screen sudo which autojump hostname jq the_silver_searcher wget \
        coreutils util-linux openssh-server bind-utils kubectl iproute iputils ffmpeg \
    && chmod +x /usr/sbin/startup.bash

CMD ["/usr/sbin/startup.bash"]
