Dockerfile 359 B

1234567891011121314
  1. FROM ubuntu
  2. RUN apt update && apt install tree nano openssh-server iproute2 sudo -y
  3. RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
  4. RUN echo 'test:test' | chpasswd
  5. RUN service ssh start
  6. RUN mkdir -p /home/ubuntu/playground
  7. COPY assets/ /home/ubuntu/playground/
  8. EXPOSE 22
  9. # Start the OpenSSH server
  10. CMD ["/usr/sbin/sshd", "-D"]