FROM fedora:40

# Install language files for other languages
COPY macros.image-language-conf /etc/rpm/macros.image-language-conf

# User ekalin with password mingw32-kildclient
RUN dnf -y install passwd

RUN useradd ekalin \
 && echo "mingw32-kildclient" | passwd --stdin ekalin

# ssh server
RUN dnf -y install openssh-server

# Build tools
RUN dnf -y install \
    autoconf \
    automake \
    gettext-devel \
    glib2-devel \
    make \
    mingw32-gcc \
    mingw32-gnutls \
    mingw32-gtk3 \
    mingw32-gtkspell3 \
    mingw32-libgnurx \
    perl-XML-LibXML \
    perl-JSON \
    unzip \
 && dnf clean all

RUN curl -o /tmp/strawberryperl.zip \
            https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip \
 && mkdir /opt/strawberryperl \
 && unzip /tmp/strawberryperl.zip -d /opt/strawberryperl \
 && rm /tmp/strawberryperl.zip


COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD /bin/bash
