# Isolated test server for File Manager / editor / transfer integration tests (Debian or Ubuntu via BASE).
# Never use these accounts outside the container.
ARG BASE=debian:trixie-slim
FROM ${BASE}
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server openssh-client sudo passwd procps python3 acl attr coreutils \
 && rm -rf /var/lib/apt/lists/* && mkdir -p /run/sshd && ssh-keygen -A
RUN useradd -m -s /bin/bash -G sudo 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"]
