content: # vim: ft=dockerfile
  
  FROM fedora:41
  
  RUN dnf makecache
  
  # Dev dependencies
  RUN dnf install -y           \
      git                      \
      rsync                    \
      make                     \
      curl                     \
      wget2                    \
      openssl                  \
      mod_ssl                  \
      systemd-devel            \
      cyrus-sasl-devel         \
      initscripts              \
      python-sphinx            \
      python3-pip              \
      python3-coverage         \
      python3-devel            \
      python3-wheel            \
      python3-distro           \
      python3-pyflakes         \
      python3-pycodestyle      \
      python3-setuptools       \
      python3-sphinx           \
      python3-sphinx_rtd_theme \
      python3-pip              \
      rpm-build                \
      which
  
  # Runtime dependencies
  RUN yum install -y          \
      httpd                   \
      python3-PyYAML          \
      python3-cheetah         \
      python3-netaddr         \
      python3-dns             \
      python3-importlib-resources \
      python3-file-magic      \
      python3-ldap            \
      python3-librepo         \
      python3-pymongo         \
      python3-gunicorn        \
      python3-schema          \
      python3-systemd         \
      createrepo_c            \
      dnf-plugins-core        \
      xorriso                 \
      grub2-efi-ia32-modules  \
      grub2-efi-x64-modules   \
      logrotate               \
      syslinux                \
      tftp-server             \
      fence-agents            \
      openldap-servers        \
      openldap-clients        \
      supervisor              \
      systemd                 \
      mtools                  \
      dosfstools
  
  # Dependencies for system tests
  RUN dnf install -y          \
      shim-x64                \
      ipxe-bootimgs           \
      dhcp-server             \
      qemu-kvm                \
      time                    \
      iproute
  
  COPY ./docker/rpms/Fedora_41/supervisord/supervisord.conf /etc/supervisord.conf
  COPY ./docker/rpms/Fedora_41/supervisord/conf.d /etc/supervisord/conf.d
  
  COPY . /usr/src/cobbler
  WORKDIR /usr/src/cobbler
  
  VOLUME /usr/src/cobbler/rpm-build
  
  CMD ["/bin/bash", "-c", "make rpms"]
  