# Isolated RHEL-family test server for File Manager / editor / transfer integration tests.
FROM rockylinux:9-minimal
RUN microdnf install -y openssh-server openssh-clients sudo passwd procps-ng shadow-utils python3 acl attr findutils && microdnf clean all \
 && ssh-keygen -A
RUN useradd -m -s /bin/bash -G wheel admin && echo 'admin:AdminPass-1' | chpasswd \
 && useradd -m -s /bin/bash nopass && echo 'nopass:NopassPass-1' | chpasswd \
 && printf 'nopass ALL=(ALL:ALL) NOPASSWD: ALL\n' > /etc/sudoers.d/90-nopass && chmod 440 /etc/sudoers.d/90-nopass \
 && useradd -m -s /bin/bash plain && echo 'plain:PlainPass-1' | chpasswd
CMD ["/usr/sbin/sshd", "-D", "-e"]
