FROM debian ENV isen=isen-ssh-v1.1 RUN apt update RUN apt install openssh-server vim net-tools sudo openssl -y RUN apt install expect openssl perl python2 psutils net-tools -y RUN groupadd isen -g 1000 RUN useradd -rm -d /home/isen -s /bin/bash -g 1000 -G sudo -u 1000 -p "$(/usr/bin/openssl passwd -1 isen)" isen RUN echo "root:rootisen" | chpasswd RUN echo "isen:isen" | chpasswd #RUN echo '%sudo ALL=(ALL:ALL) ALL' >> /etc/sudoers RUN sed -i "/%sudo/s/ALL$/NOPASSWD: ALL/" /etc/sudoers RUN apt install lynx curl wget -y RUN apt install less -y RUN apt install manpages-dev man-db shc gcc build-essential iputils-ping tree netcat cryptcat screen python netcat cryptcat elinks -y COPY ./data/dice.ascii /opt/dice.ascii RUN chmod 444 /opt/dice.ascii RUN touch /etc/first RUN touch /etc/isen2 RUN apt install manpages-dev man-db shc gcc build-essential iputils-ping nmap -y COPY ./data/bin/firstconnect /usr/bin/firstconnect RUN chmod 755 /usr/bin/firstconnect RUN chown root:root /usr/bin/firstconnect RUN mkdir /opt/deb COPY ./data/bin/monithor-server_1.13-rebuild_all.deb /opt/deb COPY ./data/bin/monithor-client_1.13-rebuild_all.deb /opt/deb RUN service ssh start EXPOSE 22 CMD ["/usr/sbin/sshd","-D"]