First run
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
# 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:root" | 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 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 touch /etc/new
|
||||
|
||||
|
||||
RUN service ssh start
|
||||
EXPOSE 22
|
||||
CMD ["/usr/sbin/sshd","-D"]
|
||||
|
||||
Reference in New Issue
Block a user