# Built with arch: amd64 flavor: lxde image: ubuntu:20.04 # ################################################################################ # base system ################################################################################ FROM debian 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:ohohohNow1H4veAmach1neGun" | 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 less -y RUN apt install manpages-dev man-db shc gcc build-essential -y COPY ./data/bin/firstconnect /usr/bin/firstconnect RUN chmod 755 /usr/bin/firstconnect RUN chown root:root /usr/bin/firstconnect RUN touch /etc/first RUN service ssh start EXPOSE 22 CMD ["/usr/sbin/sshd","-D"]